clr-angular-static-fix
Version:
1. Install Clarity Icons package through npm:
28 lines (22 loc) • 582 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 RowActionService {
private actionableCount = 0;
public register() {
this.actionableCount++;
}
public unregister() {
this.actionableCount--;
}
/**
* false means no rows with action
*/
public get hasActionableRow(): boolean {
return this.actionableCount > 0;
}
}