Wraps the Bootstrap tooltip component as an AngularJS directive, for LaxarJS widgets.
To retrieve a copy of this control you can either clone it directly using git or alternatively install it via Bower. For general information on installing, styling and optimizing controls, have a look at the LaxarJS documentation.
Install the control:
bower install laxar-tooltip-control
Make sure that bootstrap
and jquery
can be found by RequireJS.
For example, assuming that your baseUrl
is 'bower_components'
, add this to the paths
section of your require_config.js
:
jquery: 'jquery/dist/jquery',
'bootstrap': 'bootstrap-sass-official/assets/javascripts/bootstrap'
Additionally, it is necessary to specify the correct load order by adding a shim
entry:
shim: {
// ...
'bootstrap/tooltip': [ 'jquery' ]
}
Now you may reference the control from the widget.json
of your widget:
"controls": [ "laxar-tooltip-control" ]
(TODO)