vegui. sk. tooltip.js

Dependencies

vegui.sk.std.js vegui.sk.ani.js vegui.sk.ani.fade.js vegui.sk.ani.morph.js

Summary
Effect time for the morph or fade effects on the tooltip (ms)
Maximum width of the tooltip
Effect type to use to blend the tooltip in and out
If set to true then the shadow effect vegui.sk.ani.shadow.js will be used (if the library has been loaded), default: false
Defines the transparency value of the tooltip shadow, default: 15
Defines the shadow offset on the x axis, default: 5
Defines the shadow offset on the y axis, default: 5
Defines the shadow color, default: ‘#000’
Can be set to point to a per-pepared node that will be used to clone the tooltip node from
Object that defines which node types are scanned for the vsk_ttip attribute.
Creates and shows a tooltip
Destroys the node’s tooltip

Constants

VSK_TTIP_FX_TIME

Effect time for the morph or fade effects on the tooltip (ms)

VSK_TTIP_MAX_WIDTH

Maximum width of the tooltip

VSK_TTIP_FX_TYPE

Effect type to use to blend the tooltip in and out

Possible Values

’fade’tooltip is faded in/out
’morph’tooltip grows/shrinks
nullno effect

VSK_TTIP_USE_SHADOW

If set to true then the shadow effect vegui.sk.ani.shadow.js will be used (if the library has been loaded), default: false

VSK_TTIP_SHADOW_TRANSPARENCY

Defines the transparency value of the tooltip shadow, default: 15

VSK_TTIP_SHADOW_OFFSET_X

Defines the shadow offset on the x axis, default: 5

VSK_TTIP_SHADOW_OFFSET_Y

Defines the shadow offset on the y axis, default: 5

VSK_TTIP_SHADOW_COLOR

Defines the shadow color, default: ‘#000’

VSK_TTIP_NODE

Can be set to point to a per-pepared node that will be used to clone the tooltip node from

VSK_TTIP

Object that defines which node types are scanned for the vsk_ttip attribute. span,a and p are activated by default.

To enable any addinional node types simply create a property in the VSK_TTIP object by their name and set it to true

VSK_TTIP.td = true;

VSK_Node

Summary
Creates and shows a tooltip
Destroys the node’s tooltip

Functions

ttip_show

VSK_Node.prototype.ttip_show = function(text)

Creates and shows a tooltip

ttip_hide

VSK_Node.prototype.ttip_hide = function()

Destroys the node’s tooltip

vegui.sk.std.js
vegui.sk.std.js vegui.sk.ani.js
vegui.sk.std.js vegui.sk.ani.js
Allows you to add a static shadow effect to any HTML node
VSK_Node.prototype.ttip_show = function(text)
Creates and shows a tooltip
VSK_Node.prototype.ttip_hide = function()
Destroys the node’s tooltip