core/common/empty-state/empty-state-context.directive.ts
Injects data statistics object of type DataSourceStats into your template
so that you can adjust your empty state messages according to them.
Works only within the c8y-data-grid component.
<c8y-data-grid [...]>
<c8y-ui-empty-state
*emptyStateContext="let stats"
[title]="
stats?.size > 0
? (noMatchingDevices | translate)
: (noDevicesToDisplay | translate)
"
[...]
></c8y-ui-empty-state>
[...]
</c8y-data-grid>| Selector | [emptyStateContext] |
| Standalone | true |
Properties |
|
constructor(templateRef: TemplateRef<>)
|
||||||
|
Parameters :
|
| Public templateRef |
Type : TemplateRef<>
|