File

core/common/empty-state/empty-state-context.directive.ts

Description

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.

Example :
<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>

Metadata

Index

Properties

Constructor

constructor(templateRef: TemplateRef<>)
Parameters :
Name Type Optional
templateRef TemplateRef<> No

Properties

Public templateRef
Type : TemplateRef<>

results matching ""

    No results matching ""