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

Add possibility to select arbitrary elements #125

Open
wants to merge 1 commit into
base: shinyBS3
Choose a base branch
from

Conversation

thothal
Copy link

@thothal thothal commented May 14, 2020

Up to now, an element has to have an 'id' attribute to be able to get
an popover/tooltip. This was hardcoded in the underlying Javascript. A
new parameter was added to add[Tooltip|Popover] to override the default
behaviour to look for the element by id. With this flag set, the user
can provide an arbitrary jQuery selector as 'id'.

The argument name 'id' is maybe misleading in this case, but this
approach seemed to be minimal evasive and should not be breaking old
code.

Closes: #124

Up to now, an element has to have an 'id' attribute to be able to get
an popover/tooltip. This was hardcoded in the underlying Javascript. A
new parameter was added to add[Tooltip|Popover] to override the default
behaviour to look for the element by id. With this flag set, the user
can provide an arbitrary jQuery selector as 'id'.

The argument name 'id' is maybe misleading in this case, but this
approach seemed to be minimal evasive and should not be breaking old
code.

Closes: ebailey78#124
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

Successfully merging this pull request may close these issues.

FR: Allow for adding popovers/tootips to arbitrary elements
1 participant