The method sets the chosen button as enabled or disabled according to the command name.
Syntax
Javascript (Usage) | |
---|
$(function () {
var returnsValue; // Type: any
// Parameters
var commandName; // Type: string
var disabled; // Type: bool
returnsValue = $(".selector").wijribbon("setButtonDisabled", commandName, disabled);
});
|
Javascript (Specification) | |
---|
function setButtonDisabled(
commandName : string,
: bool
) : any;
|
Parameters
- commandName
- The name of the command.
- disabled
- The disabled state of the button, true or false.
Browser Compatibility
See Also
Reference
wijribbon type
wijribbon jQuery Widget