UNPKG

devexpress-gantt

Version:

DevExpress Gantt Control

19 lines (17 loc) 520 B
import { CommandBase } from "../CommandBase"; import { SimpleCommandState } from "../SimpleCommandState"; export class CollapseAllCommand extends CommandBase<SimpleCommandState> { public getState(): SimpleCommandState { return new SimpleCommandState(this.isEnabled()); } public execute(): boolean { return super.execute(); } protected executeInternal(): boolean { this.control.collapseAll(); return true; } isEnabled(): boolean { return true; } }