mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ADF-2463] Moved core components to subfolder (#3062)
This commit is contained in:
committed by
Eugenio Romano
parent
f3459e1221
commit
333e8ee89c
28
docs/core/node-name-tooltip.pipe.md
Normal file
28
docs/core/node-name-tooltip.pipe.md
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
Added: v2.0.0
|
||||
Status: Active
|
||||
---
|
||||
# Node Name Tooltip pipe
|
||||
|
||||
Formats the tooltip for a Node.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```html
|
||||
<data-column
|
||||
key="name"
|
||||
title="APP.DOCUMENT_LIST.COLUMNS.NAME">
|
||||
<ng-template let-value="value" let-context>
|
||||
<span title="{{ context?.row?.obj | adfNodeNameTooltip }}">{{ value }}</span>
|
||||
</ng-template>
|
||||
</data-column>
|
||||
```
|
||||
|
||||
## Details
|
||||
|
||||
The tooltip is formatted according to the following rules:
|
||||
|
||||
- if the _title_ and _description_ are missing, then the tooltip shows the _name_;
|
||||
- if the _title_ is missing, then the tooltip shows the _name_ and _description_;
|
||||
- if the _description_ is missing, then the tooltip shows the _name_ and _title_;
|
||||
- if _name_ and _title_, _name_ and _description_, or _title_ and _description_ are the same, then only a single line is displayed.
|
Reference in New Issue
Block a user