Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant