havart / directives

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

directives

truncate

This is extension to matTooltip Truncate directive checks the width of the element, and if a custom width has been defined, the element width will be changed. The directive uses @angular/material npm install --save @angular/material @angular/cdk

using

<span truncate truncateSize="200" truncateText="Text for tooltips" >{{ value }}</span>

About

License:MIT License


Languages

Language:TypeScript 93.8%Language:CSS 6.2%