Search in sources :

Example 1 with ComboBoxInATemplate

use of com.vaadin.flow.component.combobox.test.template.ComboBoxInATemplate in project flow-components by vaadin.

the class LazyLoadingPage method createComboBoxInATemplate.

private void createComboBoxInATemplate() {
    addTitle("Combobox inside a template");
    ComboBoxInATemplate comboBoxInATemplate = new ComboBoxInATemplate();
    comboBoxInATemplate.setId("template");
    ComboBox<String> comboBox = comboBoxInATemplate.getComboBox();
    comboBox.setDataProvider(DataProvider.ofCollection(generateStrings(1000)));
    comboBox.addValueChangeListener(e -> message.setText(e.getValue()));
    add(comboBoxInATemplate);
}
Also used : ComboBoxInATemplate(com.vaadin.flow.component.combobox.test.template.ComboBoxInATemplate)

Aggregations

ComboBoxInATemplate (com.vaadin.flow.component.combobox.test.template.ComboBoxInATemplate)1