Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wandri/angular-ellipsis-tooltip

Angular component to display ellipsis and material tooltip dynamically
https://github.com/wandri/angular-ellipsis-tooltip

angular angular-material ellipsis material-design tooltip

Last synced: 24 days ago
JSON representation

Angular component to display ellipsis and material tooltip dynamically

Awesome Lists containing this project

README

        

# Angular Ellipsis Material Tooltip

For responsive applications, the use of **ellispis** for long content can be necessary. When we want to go further and
display
the **[Angular material tooltip](https://material.angular.io/components/tooltip/overview "Angular material tooltip")**
when the ellipsis are displayed.

**Demo**: https://wandri.github.io/angular-ellipsis-tooltip/.

![demo tooltip](https://github.com/wandri/angular-ellipsis-tooltip/blob/master/assets/demo_ellipsis.gif)

Add the module

```
@NgModule({
declarations: [
...,
],
imports: [
...,
NgxEllipsisTooltipModule,
],
})
```

## ``

| @ Input | Description | Type | Requested |
|:---------|:-----------------------------------------------------|:--------|:-----------------------|
| text | text to display | string | True |
| smartCut | move the ellipsis inside the text and not at the end | boolean | False (default = true) |