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

Make it possible to target classes of elements #89

Open
DevWurm opened this issue Aug 26, 2016 · 0 comments
Open

Make it possible to target classes of elements #89

DevWurm opened this issue Aug 26, 2016 · 0 comments

Comments

@DevWurm
Copy link

DevWurm commented Aug 26, 2016

Description

The paper-tooltip can only target one element by it's ID or his own parent element. In some cases it may be usefull to target elements by their class, so only one tooltip element is needed for many (possibly dynamically added) elements (e.g. header cells of a grid, list entries).

If the class target is only the fallback resolution for the for property, their is no braking change in the API.

Expected outcome

If no element can be found by the ID specified in the for property the tooltip searches for elements by class with the name specified in for and binds to all of them.

Live Demo

Here you can find a small demo of the feature.

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

1 participant