queryCommandEnabled method

bool? queryCommandEnabled(
  1. String commandId
)

Query command enabled.

If the command is available and not disabled or the active range is not null the command is enabled, True indicates this.

TODO range option needs to be added, uses current range selection.

Implementation

bool? queryCommandEnabled(String commandId) {
  if (!_ready) throw AlohaException(AlohaException.notReady);
  return _alohaContext.callMethod('queryCommandEnabled', [commandId, null]);
}