2.0.0-git.20160919 • Published 8 years ago

@material-git/tooltip v2.0.0-git.20160919

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

MdTooltip

Tooltip allows the user to specify text to be displayed when the mouse hover over an element.

Setup

For alpha.7, you need to include the overlay styles in your app via a link element. This will look something like

<link href="vendor/@material-git/core/overlay/overlay.css" rel="stylesheet">

Examples

A button with a tooltip

<button md-tooltip="some message" tooltip-position="below">Button</button>

[md-tooltip]

Properties

NameTypeDescription
md-tooltipstringThe message to be displayed.
tooltip-position"above"|"below"|"before"|"after"The position of the tooltip.

Methods

NameDescription
showDisplays the tooltip.
hideRemoves the tooltip.
toggleDisplays or hides the tooltip.