Wijmo UI for the Web
captionButtons Option

The captionButtons option determines the caption buttons to show on the wijdialog title bar.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  object
    returnsValue = $(".selector").wijdialog("option", "captionButtons");
    
    // Set value
    var newValue; // Type:  object
    $(".selector").wijdialog("option", "captionButtons", newValue);
        
});
Javascript (Specification) 
var captionButtons : object;
Example
$("selector").wijdialog({captionButtons: {
pin: { visible: false },
refresh: { visible: false },
toggle: { visible: false },
minimize: { visible: false },
maximize: { visible: false }
}
});
Remarks
The default value for this option is: { pin: {visible: true, click: self.pin, iconClassOn: "ui-icon-pin-w", iconClassOff:"ui-icon-pin-s"}, refresh: {visible: true, click: self.refresh, iconClassOn: "ui-icon-refresh"}, toggle: {visible: true, click: self.toggle}, minimize: {visible: true, click: self.minimize, iconClassOn: "ui-icon-minus"}, maximize: {visible: true, click: self.maximize, iconClassOn: "ui-icon-extlink"}, close: {visible: true, click: self.close, iconClassOn: "ui-icon-close"} }; Each button is represented by an object in this object. property name: The name of the button. visible: A value specifies whether this button is visible. click: The event handler to handle the click event of this button. iconClassOn: Icon for normal state. iconClassOff: Icon after clicking.
Browser Compatibility
7
5
5

See Also

Reference

options type
wijdialog jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.