clr-angular-static-fix
Version:
1. Install Clarity Icons package through npm:
31 lines (28 loc) • 998 B
text/typescript
/*
* Copyright (c) 2016-2018 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import { Component } from '@angular/core';
import { Items } from './providers/items';
export class ClrDatagridPlaceholder {
constructor(private items: Items) {}
/**
* Tests if the datagrid is empty, meaning it doesn't contain any items
*/
public get emptyDatagrid() {
return !this.items.loading && (!this.items.displayed || this.items.displayed.length === 0);
}
}