Configuring tooltip options
Each of the different components in the library has a series of options that control which features of the widget are enabled by default. An object literal, or an object reference, can be passed into the tooltip()
widget method to configure these options.
The available options to configure non-default behaviors are shown in the following table:
Option |
Default value |
Used to… |
---|---|---|
|
|
Set the content of the tooltip—if setting this option, then it is likely you will also need to change the items option as well. |
|
|
Disable the tooltip. |
|
|
Determine if or how to animate the hiding of the tooltip. |
|
|
Set a selector that indicates which items should show tooltips. This can be customized if you are planning to use something other than the title attribute for the tooltip content, or need to set a different selector for event delegation. |
|
|