mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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
This commit is contained in:
committed by
Eugenio Romano
parent
f5d58178db
commit
347b2bb5e8
@@ -72,6 +72,8 @@ So once rendered our component will automatically have access to entire set of n
|
||||
|
||||
For demonstration purposes we are going to display several icons if underlying node has version `2.0`, and just a plain text version value for all other versions.
|
||||
|
||||
<!-- {% raw %} -->
|
||||
|
||||
```html
|
||||
<div *ngIf="metadata">
|
||||
<ng-container *ngIf="metadata['cm:versionLabel'] === '2.0'">
|
||||
@@ -85,6 +87,8 @@ For demonstration purposes we are going to display several icons if underlying n
|
||||
</div>
|
||||
```
|
||||
|
||||
<!-- {% endraw %} -->
|
||||
|
||||
Note: For a list of the icons that can be used with `<mat-icon>` component please refer to this resource: [material.io/icons](https://material.io/icons/)
|
||||
|
||||
## Testing component
|
||||
@@ -106,6 +110,8 @@ You can see on the screenshot above that only files with version `2.0` got extra
|
||||
|
||||
The full source code of the component can be found below:
|
||||
|
||||
<!-- {% raw %} -->
|
||||
|
||||
```ts
|
||||
import { Component, Input } from '@angular/core';
|
||||
|
||||
@@ -132,4 +138,6 @@ export class MetadataIconsComponent {
|
||||
}
|
||||
```
|
||||
|
||||
<!-- {% endraw %} -->
|
||||
|
||||
You can use this idea to build more complex indication experience based on the actual metadata state.
|
Reference in New Issue
Block a user