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);
}
Aggregations