I have a polymer 2 component which renders a number of elements using dom-repeat.
The id’s of these elements are not know until runtime.
As such I can’t bind to them using the @Id annotation.
So the question is how do I bind to these dynamically rendered components;
I’ve implemented an onAttach method but I still can’t find away to attach to the elements.
I’m expecting something like:
@Override
protected void onAttach(AttachEvent attachEvent)
{
// getById doesn't exist so what should I use ?
TimePicker timePicker = getElement().getById("some-id");
timePicker.addChangeListener(e -> System.out.println("Event fired"));
}