Skip to content

Commit dffcd26

Browse files
author
Martha Cryan
committed
Add isToggleable
1 parent 7a5ec57 commit dffcd26

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/widgets/src/commandpalette.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,11 @@ namespace CommandPalette {
652652
*/
653653
readonly isToggled: boolean;
654654

655+
/**
656+
* Whether the command item is toggleable.
657+
*/
658+
readonly isToggleable: boolean;
659+
655660
/**
656661
* Whether the command item is visible.
657662
*/
@@ -1551,6 +1556,13 @@ namespace Private {
15511556
return this._commands.isToggled(this.command, this.args);
15521557
}
15531558

1559+
/**
1560+
* Whether the command item is toggleable.
1561+
*/
1562+
get isToggleable(): boolean {
1563+
return this._commands.isToggleable(this.command, this.args);
1564+
}
1565+
15541566
/**
15551567
* Whether the command item is visible.
15561568
*/

0 commit comments

Comments
 (0)