|
Name
|
Type
|
Default
|
|
width
|
Number/String
|
'auto'
|
Gets or sets the width of jqxTooltip.
Code examples
Initialize a jqxTooltip with the width property specified.
$('#jqxTooltip').jqxTooltip({ width: 200 });
|
|
height
|
Number/String
|
'auto'
|
Gets or sets the height of jqxTooltip.
Code examples
Initialize a jqxTooltip with the height property specified.
$('#jqxTooltip').jqxTooltip({ height: 200 });
|
|
theme
|
String
|
''
|
Sets the widget's theme.
jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file.
In order to set a theme, you need to do the following:
|
|
position
|
String
|
'default'
|
Gets or sets the position of jqxTooltip.
Possible values:
- 'top' - the tooltip shows above the host element.
- 'bottom' - the tooltip shows below the host element.
- 'left' - the tooltip shows at the left of the host element.
- 'right' - the tooltip shows at the right of the host element.
- 'top-left' - the tooltip shows at the top-left side of the host element.
- 'bottom-left' - the tooltip shows at the bottom-left side of the host element.
- 'top-right' - the tooltip shows at the top-right side of the host element.
- 'bottom-right' - the tooltip shows at the bottom-right side of the host element.
- 'absolute' - the tooltip shows at an absolute position on screen, defined by the
coordinate properties
absolutePositionX and absolutePositionY.
- 'mouse' - the tooltip shows after a short period of time at the position of the
mouse cursor.
- 'mouseenter' - the tooltip shows where the mouse cursor has entered the host element.
- 'default' - the tooltip shows at the bottom-right side of the host element but does
not make use of the
left and top properties.
Code examples
Initialize a jqxTooltip with the position property specified.
$('#jqxTooltip').jqxTooltip({ position: 'top' });
|
|
enableBrowserBoundsDetection
|
Boolean
|
true
|
Gets or sets whether jqxTooltip will be hidden if it leaves the browser bounds or
will be offset so that it is always within the browser's bounds and visible.
Code examples
Initialize a jqxTooltip with the enableBrowserBoundsDetection property
specified.
$('#jqxTooltip').jqxTooltip({ enableBrowserBoundsDetection: false });
|
|
content
|
String
|
''
|
Gets or sets the content of jqxTooltip. It can be either plain text or HTML code.
Code examples
Initialize a jqxTooltip with the content property specified.
$('#jqxTooltip').jqxTooltip({ content: 'This is a jqxTooltip.' });
|
|
left
|
Number/String
|
0
|
Gets or sets the horizontal offset of jqxTooltip based on the position
property.
Code examples
Initialize a jqxTooltip with the left property specified.
$('#jqxTooltip').jqxTooltip({ left: 10 });
|
|
top
|
Number/String
|
0
|
Gets or sets the vertical offset of jqxTooltip based on the position
property.
Code examples
Initialize a jqxTooltip with the top property specified.
$('#jqxTooltip').jqxTooltip({ top: 10 });
|
|
absolutePositionX
|
Number/String
|
0
|
Gets or sets the tooltip's horizontal position if the position property
is set to 'absolute'.
Code examples
Initialize a jqxTooltip with the absolutePositionX property specified.
$('#jqxTooltip').jqxTooltip({ absolutePositionX: 400 });
|
|
absolutePositionY
|
Number/String
|
0
|
Gets or sets the tooltip's vertical position if the position property
is set to 'absolute'.
Code examples
Initialize a jqxTooltip with the absolutePositionY property specified.
$('#jqxTooltip').jqxTooltip({ absolutePositionY: 0 });
|
|
trigger
|
String
|
'hover'
|
Gets or sets the way of triggering the tooltip.
Possible values:
- 'hover' - the tooltip shows immeadiately after hovering over the host element.
- 'focus' - the tooltip shows after duration equal to the
showDelay property
after hovering over the host element.
- 'click' - the tooltip shows when the host element is clicked.
Code examples
Initialize a jqxTooltip with the trigger property specified.
$('#jqxTooltip').jqxTooltip({ trigger: 'click' });
|
|
showDelay
|
Number
|
1500
|
Gets or sets the duration after which the tooltip will be shown if its trigger
property is set to 'focus'.
Code examples
Initialize a jqxTooltip with the showDelay property specified.
$('#jqxTooltip').jqxTooltip({ showDelay: 1000 });
|
|
autoHide
|
Boolean
|
true
|
Gets or sets whether the tooltip will automatically hide after duration equal to
the autoHideDelay property.
Code examples
Initialize a jqxTooltip with the autoHide property specified.
$('#jqxTooltip').jqxTooltip({ autoHide: false });
|
|
autoHideDelay
|
Number
|
1500
|
Gets or sets the duration after which the tooltip automatically hides (works only
if the autoHide property is set to true).
Code examples
Initialize a jqxTooltip with the autoHideDelay property specified.
$('#jqxTooltip').jqxTooltip({ autoHideDelay: 3000 });
|
|
closeOnClick
|
Boolean
|
true
|
Gets or sets whether the tooltip will close if it is clicked.
Code examples
Initialize a jqxTooltip with the closeOnClick property specified.
$('#jqxTooltip').jqxTooltip({ closeOnClick: false });
|
|
disabled
|
Boolean
|
false
|
Gets or sets whether the tooltip is disabled.
Code examples
Initialize a jqxTooltip with the disabled property specified.
$('#jqxTooltip').jqxTooltip({ disabled: true });
|
|
animationShowDelay
|
Number
|
500
|
Gets or sets the duration of the tooltip animation at show.
Code examples
Initialize a jqxTooltip with the animationShowDelay property specified.
$('#jqxTooltip').jqxTooltip({ animationShowDelay: 250 });
|
|
animationHideDelay
|
Number
|
500
|
Gets or sets the duration of the tooltip animation at hide.
Code examples
Initialize a jqxTooltip with the animationHideDelay property specified.
$('#jqxTooltip').jqxTooltip({ animationHideDelay: 250 });
|
|
showArrow
|
Boolean
|
true
|
Gets or sets whether the tooltip's arrow will be shown.
Code examples
Initialize a jqxTooltip with the showArrow property specified.
$('#jqxTooltip').jqxTooltip({ showArrow: false });
|
|
|
|
open
|
Event
|
|
This event is triggered when the tooltip is opened (shown).
Code examples
Bind to the open event by type: jqxTooltip.
$('#jqxTooltip').bind('open', function () { // Some code here. });
|
|
close
|
Event
|
|
This event is triggered when the tooltip is closed (hidden).
Code examples
Bind to the close event by type: jqxTooltip.
$('#jqxTooltip').bind('close', function () { // Some code here. });
|
|
|
|
open
|
Method
|
|
Opens the tooltip.
Code examples
Invoke the open method.
$('#jqxTooltip').jqxTooltip('open');
|
|
close
|
Method
|
|
Closes the tooltip.
Code examples
Invoke the close method.
$('#jqxTooltip').jqxTooltip('close');
|
|
destroy
|
Method
|
|
Destroys the tooltip by removing it from the DOM.
Code examples
Invoke the destroy method.
$("#jqxTooltip").jqxTooltip('destroy');
|