What is the data-selector option used for in Twitter's Bootstrap Tooltip? The description reads...
If a selector is provided, tooltip objects will be delegated to the specified targets.
But I don't understand its purpose or how to use it.
What is the data-selector option used for in Twitter's Bootstrap Tooltip? The description reads...
If a selector is provided, tooltip objects will be delegated to the specified targets.
But I don't understand its purpose or how to use it.
Share Improve this question edited Nov 24, 2012 at 21:10 Fynn 4,9034 gold badges35 silver badges76 bronze badges asked Nov 24, 2012 at 20:58 Adam YoungersAdam Youngers 6,7598 gold badges39 silver badges53 bronze badges1 Answer
Reset to default 6It is the similar to using jQuery delegation methods like on()
or delegate()
in order to account for tooltip elements that aren't present in page when code is run.
Example binding to body
since it is always present in page
$('body').tooltip({
selector: '.mytooltipClass'
})
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744854144a4597304.html
评论列表(0条)