Tooltip
class Tooltip extends ConfigObject (View source)
Properties
bool | $isHtml | Tooltip is HTML. | |
bool | $showColorCode | Show color code for the tooltip. | |
TextStyle | $textStyle | Tooltip text style | |
string | $trigger | Trigger Action of the tooltip. |
Methods
Builds the tooltip object with specified options.
Returns an array representation of the object.
Same as toArray, but without the class name as a key to being multi-dimension.
Sets whether to show the color code.
Details
at line 61
mixed
__construct(
array $config = array())
Builds the tooltip object with specified options.
in
ConfigObject at line 93
array
toArray(
string $keyName = null)
Returns an array representation of the object.
If passed a label, then the array will be returned with the label as the key.
Called with no label returns an array with the classname as the key.
in
ConfigObject at line 115
array
getValues()
Same as toArray, but without the class name as a key to being multi-dimension.
at line 73
Tooltip
isHtml(
bool $isHtml)
Sets whether the tooltip is HTML.
at line 93
Tooltip
showColorCode(
bool $showColorCode)
Sets whether to show the color code.
at line 113
Tooltip
textStyle(
TextStyle $textStyle)
Sets the text style of the tooltip.
at line 130
Tooltip
trigger(
string $trigger)
Sets The user interaction that causes the tooltip to be displayed.
'focus' - The tooltip will be displayed when the user hovers over an element. 'none' - The tooltip will not be displayed.