Options Details
classes Type : object
Default value : {}
We can assign different classes to controlgroup, by Default the controlgroup element will inherent the class ui-controlgroup.
$( ".my_controlgroup" ).controlgroup({
classes: {
"ui-controlgroup": "highlight"
}
});
To read value of classes
var my_classes = $( ".my_classes" ).controlgroup( "option", "classes.ui-controlgroup" );
To set the value of classes
$( ".my_controlgroup" ).controlgroup( "option", "classes.ui-controlgroup", "highlight" );
direction Type : String
Default value : 'horizontal'
Possible values: "horizontal", "vertical"
$( ".my_controlgroup" ).controlgroup({
"direction": "horizontal"
});
To read value
var direction = $(".my_controlgroup").controlgroup( "option", "direction" );
To set the value
$( ".my_controlgroup" ).controlgroup( "option", "direction", 'vertical' );
disabled Type : Boolean
Default value : false
Disable controlgroup if set to true
$( .my_controlgroup" ).controlgroup({
disabled:false
});
To read value
var disabled = $( ".my_controlgroup" ).controlgroup( "option", "disabled" );
To set the value
$( ".my_controlgroup" ).controlgroup( "option", "disabled",true );
destroy Removed the functionality of control group
$( ".my_controlgroup" ).controlgroup( "destroy");
disable disable the controlgroup functionality
$( ".my_controlgroup" ).controlgroup( "disable");
enable Enable the controlgroup functionality
$( ".my_controlgroup" ).controlgroup( "enable");
instance Invoke the instance method
$( ".my_controlgroup" ).controlgroup( "instance");
option value of the specified option name
var val_direction=$( ".my_controlgroup" ).controlgroup( "option","direction");
var val_disabled=$( ".my_controlgroup" ).controlgroup( "option","disabled");
var val_onlyVisible=$( ".my_controlgroup" ).controlgroup( "option","onlyVisible");
refresh Invoke the refresh method
$( ".my_controlgroup" ).controlgroup( "refresh");
widget() return object containing controlgroup.
var my_widget = $( ".my_controlgroup" ).controlgroup( "widget" );
create Triggered when it is created.
$( ".my_controlgroup" ).controlgroup({
create: function( event, ui ) {}
});