tooltipcomponent, implemented in Ruby. Use it like any other matestack component in your apps, pages and components. It offers customizable options to simply achieve what is possible in bootstrap with this component. See below for more information about the possible options.
:tooltip_title- expects a string as the title text for the tooltip
:text- expects a string as text for the visible element on which the tooltip will be applied to, alternatively yield a block
:tag- element that tooltip should be applied to. By default is set as 'div', you can modify it to use a
:animation- Apply a CSS fade transition to the tooltip
:placement- How to position the tooltip -
right. when auto is specified, it will dynamically reorient the tooltip.
:trigger- How tooltip is triggered -
manual. You may pass multiple triggers; separate them with a space.
manualcannot be combined with any other trigger.
:boundary- Overflow constraint boundary of the tooltip
:offset- Offset of the tooltip relative to its target.
:container- Appends the tooltip to a specific element.
:delay- Delay showing and hiding the tooltip (ms) - does not apply to manual trigger type. If a number is supplied, delay is applied to both hide/show
:selector- If a selector is provided, tooltip objects will be delegated to the specified targets
:html- Insert HTML into the tooltip. If false, innerText property will be used to insert content into the DOM.
:template- Base HTML to use when creating the tooltip.
:fallback_placement- Allow to specify which position Popper will use on fallback.