Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !6869

Applies data attributes to selector tooltips, fixes #6832

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/configit/tooltip-with-selector-fix into master Feb 09, 2013
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 4

Created by: kasperp

This commit fixes #6832 (closed), by applying options provided in data attributes before showing and hiding tooltips with a selector.

In the doc there is something like this:

<div class="bs-docs-example tooltip-demo">
  <ul class="bs-docs-tooltip-examples">
    <li><a href="#" data-toggle="tooltip" data-placement="top" title="" data-original-title="Tooltip on top">Tooltip on top</a></li>
    <li><a href="#" data-toggle="tooltip" data-placement="right" title="" data-original-title="Tooltip on right">Tooltip on right</a></li>
    <li><a href="#" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Tooltip on bottom">Tooltip on bottom</a></li>
    <li><a href="#" data-toggle="tooltip" data-placement="left" title="" data-original-title="Tooltip on left">Tooltip on left</a></li>
  </ul>
</div>

The tooltip plugin are then attached like so:

$('.tooltip-demo').tooltip({
  selector: "a[data-toggle=tooltip]"
})

Without applying the data attribute options, only the options in given to to the tooltip( .. ) are used and all the delegated tooltips use the default placement (as well as other defaults).

I don't know if this is something you want to support, alternatively docs could be updated to attach the tooltips differently.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/configit/tooltip-with-selector-fix