Package Exports
- ng2-tooltip-directive
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ng2-tooltip-directive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Installation
1 Install the npm package.
npm i ng2-tooltip-directive
2 Import Ng2Module:
import { TooltipDirective } from 'ng2-tooltip-directive/components';
@NgModule({
declarations: [ TooltipDirective ]
})
3 Add CSS styles
Example CSS: http://crystalui.org/components/tooltip#css-styles
Usage
<span tooltip="Tooltip" placement="top" show-delay="500">Tooltip on top</span>
Properties
name | type | description |
---|---|---|
placement | "top", "bottom", "left", "right" | The position of the tooltip. |
show-delay | number | The delay in ms before showing the tooltip. |
hide-delay | number | The delay in ms before removing the tooltip. |
z-index | number | Z-index of the tooltip. |
hover | boolean | Set to none to trigger the tooltip with a click. Control the closing time with hide-delay . true by default |