Content-Length: 84582 | pFad | http://docs.telerik.com/kendo-ui/controls/tooltip/disabled-elements

jQuery Tooltip Disabled Elements - Kendo UI for jQuery
New to Kendo UI for jQueryStart a free 30-day trial

Disabled Elements

The Tooltip enables you render it over disabled elements.

While the Tooltip relies on the mouseenter and mouseleave events to work, disabled elements do not fire events by design. To render the Tooltip over disabled elements, initialize the Tooltip over the parent of the disabled element. Include some empty space between the disabled element and the boundaries of its parent so that the mouseenter event can be fired.

<style>
.parent {
    display: inline-block;
    border: 1px solid;
    margin: 2em;
    padding: 0.2em;
}
</style>

<div id="example">

  <span id="btn1-parent" class="parent" style="border-color:#f00;">
    <button id="btn1" class="k-button" disabled="disabled">No tooltip</button>
  </span>

  <span id="btn2-parent" class="parent" style="border-color:#0c0;">
    <button id="btn2" class="k-button" disabled="disabled">Tooltip works</button>
  </span>

</div>

<script>
  $(function() {
    $("#btn1, #btn2-parent").kendoTooltip({
      content: "Hello!",
      position: "right"
    });
  });
</script>

See Also

In this article
See Also
Not finding the help you need?
Contact Support








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://docs.telerik.com/kendo-ui/controls/tooltip/disabled-elements

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy