alfresco-ng2-components/docs/core/node-name-tooltip.pipe.md
Andy Stark 347b2bb5e8 [ADF-2526] Fixed interpolation marker issue in doc files (#3098)
* [ADF-2526] Test commit of a file with escape tags

* [ADF-2526] Fixed interpolation marker issue in doc code samples
2018-03-20 14:03:12 +00:00

867 B

Added, Status
Added Status
v2.0.0 Active

Node Name Tooltip pipe

Formats the tooltip for a Node.

Basic Usage

<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.