gwt-polymer-elements
gwt-polymer-elements copied to clipboard
Iron-list is not selectable
Using the sample from here: http://vaadin.github.io/gwt-polymer-elements/demo/#iron/IronListSample
The iron-list items are not selectable.
@manolo Is there anything one has to add to make then selectable?
I tried:
@UiField
IronList resultList;
Polymer.ready(resultList.getElement(), arg -> {
resultList.setSelectionEnabled(true);
resultList.getPolymerElement().addEventListener(IronSelectEvent.NAME, event -> {
GWT.log("selected!!");
});
return null;
});
but it never fired.
The problem is that you cannot set tabindex$="[[tabIndex]]"
:
<iron-list items="[[data]]" as="item">
<template>
<div tabindex$="[[tabIndex]]">
Name: [[item.name]]
</div>
</template>
</iron-list>
UIBinder will not allow this.
May be you could add some clever helper method to have a workaround.
could you provide your entire ui.xml file ? seems like you need an auxiliary template for the data binding