Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Allow items to be filtered via itemsSelector when target is self #1

Open
sorvell opened this issue Nov 13, 2013 · 1 comment
Open

Comments

@sorvell
Copy link
Contributor

sorvell commented Nov 13, 2013

polymer-ui-menu extends polymer-selector and the selector target is the menu itself. It would be useful to be able to locate the menu items as other than direct children of the menu. The itemsSelector property is intended for this use but it only works if the selector targets another element.

This would be useful for this type of construction:

<polymer-ui-menu>
  <a><polymer-ui-menu-item></polymer-ui-menu-item></a>
 ...

See this thread for more info: https://groups.google.com/forum/#!topic/polymer-dev/CTumvA_cTtE

@ghost ghost assigned frankiefu Nov 13, 2013
@sjmiles
Copy link
Contributor

sjmiles commented Nov 13, 2013

Fwiw, another possibility is to have a followLinks feature (or something) in menu-item that causes taps to behave roughly like this:

var a = this.querySelector('a');
window.location.href = a.href;

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

No branches or pull requests

3 participants