Tooltip
Examples
Web Component
Chi Vue
Props
Property | Description | Type | Default |
---|---|---|---|
message | To set the tooltip message to display | string | undefined |
position | To set position of the tooltip | 'top' | 'right' | 'bottom' | 'left' | 'top' |
color | To set the background color of the tooltip | 'base' | 'light' | 'base' |
Events
Event | Description |
---|---|
chiTooltipShow | Tooltip show method has been executed. |
chiTooltipHide | Tooltip hide method has been executed. |
chiTooltipShown | Tooltip has been shown to the user and is fully visible. |
chiTooltipHidden | Tooltip has been hidden to the user. |
JavaScript
Events
Event | Description |
---|---|
chiTooltipShow | Tooltip show method has been executed. |
chiTooltipHide | Tooltip hide method has been executed. |
Preventing memory leaks
Tooltip components have a dispose function to free all resources attached to the element, such as event listeners and object data. You must call this method when you want to remove the component.
TipIt is safe to call the tooltip
method more than once, as it will return any previously created tooltip component associated to the element.
Accessibility
Accessibility guidelines coming soon