Command
Command is an interface for extending the toolbar with your own commands. You must supply the Editor.addCommand method with an object that implements these methods. Note that you only need to implement that methods you need, since Xopus internally extends a base class with the object you supply.
- Documentation
- › API
- › Global objects API
- › Command
Command object
methods
Command.configure( scope: Scope)Command.execute( scope: Scope)Command.getAvailable( scope: Scope): BooleanCommand.getChecked( scope: Scope): BooleanCommand.getEnabled( scope: Scope): BooleanCommand.getLabel( scope: Scope): StringCommand.getShortcuts( scope: Scope): Array of Strings