Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iron-list is not selectable #109

Open
confile opened this issue Feb 11, 2016 · 3 comments
Open

Iron-list is not selectable #109

confile opened this issue Feb 11, 2016 · 3 comments

Comments

@confile
Copy link
Contributor

confile commented Feb 11, 2016

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.

@confile
Copy link
Contributor Author

confile commented Feb 12, 2016

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.

@confile
Copy link
Contributor Author

confile commented Feb 12, 2016

May be you could add some clever helper method to have a workaround.

@manolo
Copy link
Owner

manolo commented Oct 27, 2016

could you provide your entire ui.xml file ? seems like you need an auxiliary template for the data binding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants