Description
Command.getLabel returns the label for the command.
Note: When defining functions for this method, you should be aware that variables used are scope variables. Thus the functions you define will be executed whenever there's a change in the scope of your variables.
myCounterCommand.getLabel = function (scope) {
return "Update counter attribute on the document";
}
Arguments
-
scope
-
Scope. The scope state.
Return Value
String. Label.