alfresco-ng2-components/docs/core/pipes/node-name-tooltip.pipe.md
Denys Vuika 4f2b3bce3c
[ACS-5761] Demo Shell pages cleanup (#8802)
remove the content that is not covered by e2e testing, preparation steps for the demo shell decommissioning
2023-08-08 14:09:41 +01:00

1.1 KiB

Title, Added, Status
Title Added Status
Node Name Tooltip pipe v2.0.0 Active

Node Name Tooltip pipe

Formats the tooltip for a Node.

Basic Usage

<data-column
    key="name"
    title="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.