Hi,
I have a PolymerTemplate which defined a vaadin-select element, and I would like to add select contents programmatically from my server side element API. How can I do so? It seems like a basic question.
Best regards,
Joey
Hi,
I have a PolymerTemplate which defined a vaadin-select element, and I would like to add select contents programmatically from my server side element API. How can I do so? It seems like a basic question.
Best regards,
Joey
Set an id
attribute to the <vaadin-select>
and you can bind it to a server-side component using the @Id
annotation. Read more here: https://vaadin.com/docs/v14/flow/polymer-templates/tutorial-template-components.html
Do I have to add a ListBox to that @Id element or some other components?
Many thanks,
Joey
If you’re using a <vaadin-select>
on the template, the corresponding server-side class is a com.vaadin.flow.component.select.Select
Oh, thanks alot.