UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

946 lines (943 loc) 54.6 kB
<!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="../../../../Styles/jqx.apireference.css" type="text/css" /> <script type="text/javascript" src="../../../../scripts/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="../../../../scripts/documentation.js"></script> <meta name="keywords" content="jQuery, Tooltip, jqxTooltip, tool tip, tip, title, popup" /> <meta name="description" content="This page represents the help documentation of the jqxTooltip widget." /> <title>jqxTooltip API Reference</title> <script type="text/javascript"> $(document).ready(function () { $(".documentation-option-type-click").click(function (event) { $(event.target).parents('tr').next().find(".property-content").toggle(); }); }); </script> </head> <body> <div id="properties"> <h2 class="documentation-top-header">Properties</h2> <table class="documentation-table"> <tr> <th>Name </th> <th>Type </th> <th>Default </th> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span08'>absolutePositionX</span> </td> <td> <span>Number/String</span> </td> <td>0 </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the tooltip's horizontal position if the position property is set to 'absolute'. </p> <h4>Code examples</h4> <p> Set the <code>absolutePositionX</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ absolutePositionX: 400 });</code></pre> <p> Get the <code>absolutePositionX</code> property. </p> <pre><code>var absolutePositionX = $('#jqxTooltip').jqxTooltip('absolutePositionX');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/HPUHy/">absolutePositionX is set to 10</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span09'>absolutePositionY</span> </td> <td> <span>Number/String</span> </td> <td>0 </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the tooltip's vertical position if the position property is set to 'absolute'. </p> <h4>Code examples</h4> <p> Set the <code>absolutePositionY</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ absolutePositionY: 0 }); </code></pre> <p> Get the <code>absolutePositionY</code> property. </p> <pre><code>var absolutePositionY = $('#jqxTooltip').jqxTooltip('absolutePositionY');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/kamMQ/">absolutePositionY is set to 10</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span12'>autoHide</span> </td> <td> <span>Boolean</span> </td> <td>true </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets whether the tooltip will automatically hide after duration equal to the autoHideDelay property. </p> <h4>Code examples</h4> <p> Set the <code>autoHide</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ autoHide: false });</code></pre> <p> Get the <code>autoHide</code> property. </p> <pre><code>var autoHide = $('#jqxTooltip').jqxTooltip('autoHide');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/kKkMj/">autoHide is set to false</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span13'>autoHideDelay</span> </td> <td> <span>Number</span> </td> <td>3000 </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the duration after which the tooltip automatically hides (works only if the autoHide property is set to true). If <code>autoHideDelay</code> is set to 0, the tooltip hides only after the mouse has left the parent element. </p> <h4>Code examples</h4> <p> Set the <code>autoHideDelay</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ autoHideDelay: 3000 });</code></pre> <p> Get the <code>autoHideDelay</code> property. </p> <pre><code>var autoHideDelay = $('#jqxTooltip').jqxTooltip('autoHideDelay');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/5vvtm/">autoHideDelay is set to 100</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span16'>animationShowDelay</span> </td> <td> <span>Number/String</span> </td> <td>'fast' </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the duration of the tooltip animation at show. </p> <h4>Code examples</h4> <p> Set the <code>animationShowDelay</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ animationShowDelay: 250 });</code></pre> <p> Get the <code>animationShowDelay</code> property. </p> <pre><code>var animationShowDelay = $('#jqxTooltip').jqxTooltip('animationShowDelay');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/YWuLr/">animationShowDelay is set to 2000</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span17'>animationHideDelay</span> </td> <td> <span>Number/String</span> </td> <td>'fast' </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the duration of the tooltip animation at hide. </p> <h4>Code examples</h4> <p> Set the <code>animationHideDelay</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ animationHideDelay: 250 });</code></pre> <p> Get the <code>animationHideDelay</code> property. </p> <pre><code>var animationHideDelay = $('#jqxTooltip').jqxTooltip('animationHideDelay');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/xhTsD/">animationHideDelay is set to 2000</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span05'>content</span> </td> <td> <span>String</span> </td> <td>'' </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the content of jqxTooltip. It can be either plain text or HTML code. </p> <h4>Code examples</h4> <p> Set the <code>content</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ content: 'This is a jqxTooltip.' });</code></pre> <p> Get the <code>content</code> property. </p> <pre><code>var content = $('#jqxTooltip').jqxTooltip('content');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/DEEfy/">content is set to 'This is a jqxButton.'</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span14'>closeOnClick</span> </td> <td> <span>Boolean</span> </td> <td>true </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets whether the tooltip will close if it is clicked. </p> <h4>Code examples</h4> <p> Set the <code>closeOnClick</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ closeOnClick: false });</code></pre> <p> Get the <code>closeOnClick</code> property. </p> <pre><code>var closeOnClick = $('#jqxTooltip').jqxTooltip('closeOnClick');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/tC8Wj/">closeOnClick is set to false</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span15'>disabled</span> </td> <td> <span>Boolean</span> </td> <td>false </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets whether the tooltip is disabled. </p> <h4>Code examples</h4> <p> Set the <code>disabled</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ disabled: true });</code></pre> <p> Get the <code>disabled</code> property. </p> <pre><code>var disabled = $('#jqxTooltip').jqxTooltip('disabled');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/7MKsu/">disabled is set to true</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span04'>enableBrowserBoundsDetection</span> </td> <td> <span>Boolean</span> </td> <td>true </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets 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. </p> <h4>Code examples</h4> <p> Set the <code>enableBrowserBoundsDetection</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ enableBrowserBoundsDetection: false });</code></pre> <p> Get the <code>enableBrowserBoundsDetection</code> property. </p> <pre><code>var enableBrowserBoundsDetection = $('#jqxTooltip').jqxTooltip('enableBrowserBoundsDetection');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/pjAJy/">enableBrowserBoundsDetection is set to true</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span02'>height</span> </td> <td> <span>Number/String</span> </td> <td>'auto' </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the height of jqxTooltip. </p> <h4>Code examples</h4> <p> Set the <code>height</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ height: 200 });</code></pre> <p> Get the <code>height</code> property. </p> <pre><code>var height = $('#jqxTooltip').jqxTooltip('height');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/VGF2a/">height is set to 30</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span06'>left</span> </td> <td> <span>Number/String</span> </td> <td>0 </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the horizontal offset of jqxTooltip based on the position property. </p> <h4>Code examples</h4> <p> Set the <code>left</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ left: 10 });</code></pre> <p> Get the <code>left</code> property. </p> <pre><code>var left = $('#jqxTooltip').jqxTooltip('left');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/RVnCE/">left is set to 100</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span24'>name</span> </td> <td> <span>String</span> </td> <td>'' </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the name of the tooltip's group. Only one tooltip from a group can be shown at a time. By default, all tooltips are in a single group. </p> <h4>Code examples</h4> <p> Set the <code>name</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ name: 'tooltipGroup1' });</code></pre> <p> Get the <code>name</code> property. </p> <pre><code>var name = $('#jqxTooltip').jqxTooltip('name');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/tyte8/">name is set to 'tooltipGroup'</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span25'>opacity</span> </td> <td> <span>Number</span> </td> <td>0.9 </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the tooltip's opacity.The value must be between 0 and 1. </p> <h4>Code examples</h4> <p> Set the <code>opacity</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ opacity: 1 });</code></pre> <p> Get the <code>opacity</code> property. </p> <pre><code>var opacity = $('#jqxTooltip').jqxTooltip('opacity');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/D6UuT/">opacity is set to 0.5</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span03'>position</span> </td> <td> <span>String</span> </td> <td>'default' </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the position of jqxTooltip. </p> <b>Possible Values:</b> <br /> <pre><code>'top' - the tooltip shows above the host element</code></pre> <pre><code>'bottom' - the tooltip shows below the host element</code></pre> <pre><code>'left' - the tooltip shows at the left of the host element</code></pre> <pre><code>'right' - the tooltip shows at the right of the host element</code></pre> <pre><code>'top-left' - the tooltip shows at the top-left side of the host element</code></pre> <pre><code>'bottom-left' - the tooltip shows at the bottom-left side of the host element</code></pre> <pre><code>'top-right' - the tooltip shows at the top-right side of the host element</code></pre> <pre><code>'bottom-right' - the tooltip shows at the bottom-right side of the host element</code></pre> <pre><code>'absolute' - the tooltip shows at an absolute position on screen, defined by the coordinate properties <code>absolutePositionX</code> and <code>absolutePositionY</code></code></pre> <pre><code>'mouse' - the tooltip shows after a short period of time at the position of the mouse cursor</code></pre> <pre><code>'mouseenter' - the tooltip shows where the mouse cursor has entered the host element</code></pre> <pre><code>'default' - the tooltip shows at the bottom-right side of the host element but does not make use of the <code>left</code> and <code>top</code> properties</code></pre> <h4>Code examples</h4> <p> Set the <code>position</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ position: 'top' });</code></pre> <p> Get the <code>position</code> property. </p> <pre><code>var position = $('#jqxTooltip').jqxTooltip('position');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/pUVZZ/">position is set to 'top'</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span26'>rtl</span> </td> <td> <span>Boolean</span> </td> <td>false </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets whether the jqxTooltip's right-to-left support is enabled. </p> <h4>Code examples</h4> <p> Set the <code>rtl</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ rtl: true });</code></pre> <p> Get the <code>rtl</code> property. </p> <pre><code>var rtl = $('#jqxTooltip').jqxTooltip('rtl');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/gttNS/">rtl is set to true</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span11'>showDelay</span> </td> <td> <span>Number</span> </td> <td>100 </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the duration after which the tooltip will be shown. </p> <h4>Code examples</h4> <p> Set the <code>showDelay</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ showDelay: 1000 }); </code></pre> <p> Get the <code>showDelay</code> property. </p> <pre><code>var showDelay = $('#jqxTooltip').jqxTooltip('showDelay');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/rcqcn3qc/">showDelay is set to 200</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span18'>showArrow</span> </td> <td> <span>Boolean</span> </td> <td>true </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets whether the tooltip's arrow will be shown. </p> <h4>Code examples</h4> <p> Set the <code>showArrow</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ showArrow: false });</code></pre> <p> Get the <code>showArrow</code> property. </p> <pre><code>var showArrow = $('#jqxTooltip').jqxTooltip('showArrow');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/VQ45L/">showArrow is set to false</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span07'>top</span> </td> <td> <span>Number/String</span> </td> <td>0 </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the vertical offset of jqxTooltip based on the position property. </p> <h4>Code examples</h4> <p> Set the <code>top</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ top: 10 }); </code></pre> <p> Get the <code>top</code> property. </p> <pre><code>var top = $('#jqxTooltip').jqxTooltip('top');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/3pLKn/">top is set to 100</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span10'>trigger</span> </td> <td> <span>String</span> </td> <td>'hover' </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the way of triggering the tooltip. </p> <b>Possible Values:</b> <br /> <pre><code>'hover' - the tooltip shows immeadiately after hovering over the host element.</code></pre> <pre><code>'click' - the tooltip shows when the host element is clicked</code></pre> <h4>Code examples</h4> <p> Set the <code>trigger</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ trigger: 'click' });</code></pre> <p> Get the <code>trigger</code> property. </p> <pre><code>var trigger = $('#jqxTooltip').jqxTooltip('trigger');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/jxhQR/">trigger is set to 'click'</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span63'>theme</span> </td> <td> <span>String</span> </td> <td>'' </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets the widget's theme. </p> 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: <ul> <li>Include the theme's CSS file after jqx.base.css.<br /> The following code example adds the 'energyblue' theme. <pre><code>&lt;link rel=&quot;stylesheet&quot; href=&quot;../../../../jqwidgets/styles/jqx.base.css&quot;type=&quot;text/css&quot;/&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;../../../../jqwidgets/styles/jqx.energyblue.css&quot; type=&quot;text/css&quot; /&gt;</code></pre> </li> <li>Set the widget's theme property to 'energyblue' when you initialize it. </li> </ul> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/XbWZ4/">theme is set to 'energyblue'</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span01'>width</span> </td> <td> <span>Number/String</span> </td> <td>'auto' </td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Sets or gets the width of jqxTooltip. </p> <h4>Code examples</h4> <p> Set the <code>width</code> property. </p> <pre><code>$('#jqxTooltip').jqxTooltip({ width: 200 });</code></pre> <p> Get the <code>width</code> property. </p> <pre><code>var width = $('#jqxTooltip').jqxTooltip('width');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/fjG6B/">width is set to 200</a> </div> </div> </td> </tr> <tr> <td colspan='3' style='width: 100%'> <h2 class="documentation-top-header">Events</h2> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span20'>close</span> </td> <td> <span>Event</span> </td> <td></td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> This event is triggered when the tooltip is closed (hidden). </p> <h4>Code examples</h4> <p> Bind to the <code>close</code> event by type: jqxTooltip. </p> <pre><code>$('#jqxTooltip').bind('close', function () { // Some code here. }); </code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/Q2waY/">Bind to the close event by type: jqxTooltip.</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span27'>closing</span> </td> <td> <span>Event</span> </td> <td></td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> This event is triggered when the tooltip is closing. </p> <h4>Code examples</h4> <p> Bind to the <code>closing</code> event by type: jqxTooltip. </p> <pre><code>$('#jqxTooltip').bind('closing', function () { // Some code here. }); </code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/v7q7g/">Bind to the closing event by type: jqxTooltip.</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span19'>open</span> </td> <td> <span>Event</span> </td> <td></td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> This event is triggered when the tooltip is opened (shown). </p> <h4>Code examples</h4> <p> Bind to the <code>open</code> event by type: jqxTooltip. </p> <pre><code>$('#jqxTooltip').bind('open', function () { // Some code here. }); </code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/MkxZM/">Bind to the open event by type: jqxTooltip.</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span28'>opening</span> </td> <td> <span>Event</span> </td> <td></td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> This event is triggered when the tooltip is opening. </p> <h4>Code examples</h4> <p> Bind to the <code>opening</code> event by type: jqxTooltip. </p> <pre><code>$('#jqxTooltip').bind('opening', function () { // Some code here. }); </code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/4zRGS/">Bind to the opening event by type: jqxTooltip.</a> </div> </div> </td> </tr> <tr> <td colspan='3' style='width: 100%'> <h2 class="documentation-top-header">Methods</h2> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span22'>close</span> </td> <td> <span>Method</span> </td> <td></td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Specifies a time before the tooltip closes. If it is not set, the tooltip closes immediately. </p> <div class="methodArgs"> <table class="arguments"> <tbody> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> <tr> <td><em>index</em></td> <td>Number</td> <td></td> </tr> </tbody> </table> <strong>Return Value</strong><br /> <em>None</em> </div> <h4>Code examples</h4> <p> Invoke the <code>close</code> method. </p> <pre><code>// @param Number. $('#jqxTooltip').jqxTooltip('close', 300);</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/RdfEU/">closes the jqxTooltip.</a> </div> </div> </td> </tr> <tr> <td class="documentation-option-type-click"> <span id='Span23'>destroy</span> </td> <td> <span>Method</span> </td> <td></td> </tr> <tr> <td colspan='3' style='width: 100%'> <div class="documentation-option-description property-content" style="display: none;"> <p> Destroys the tooltip by removing it from the DOM. </p> <div class="methodArgs"> <table class="arguments"> <tbody> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> <tr> <td><em>None</em></td> <td></td> <td></td> </tr> </tbody> </table> <strong>Return Value</strong><br /> <em>None</em> </div> <h4>Code examples</h4> <p> Invoke the <code>destroy</code> method. </p> <pre><code>$("#jqxTooltip").jqxTooltip('destroy');</code></pre> <div style="padding-bottom: 5px;"> <em>Try it:</em> <a target="_blank" href="http://jsfiddle.net/jqwidgets/49Yy4/">destroy the jqxTooltip.</a> </div> </div> </t