clr-angular-static-fix
Version:
1. Install Clarity Icons package through npm:
27 lines (22 loc) • 584 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 { Injectable } from '@angular/core';
()
export class ExpandableRowsCount {
private expandableCount = 0;
public register() {
this.expandableCount++;
}
public unregister() {
this.expandableCount--;
}
/**
* false means no rows with action
*/
public get hasExpandableRow(): boolean {
return this.expandableCount > 0;
}
}