Wijmo UI for the Web
captionButtons Option
wijmo.dialog.wijdialog Namespace > options type : captionButtons Option

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

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  object
    returnsValue = $(".selector").wijdialog("option", "captionButtons");
    
    // Set value
    var newValue; // Type:  object
    $(".selector").wijdialog("option", "captionButtons", newValue);
        
});
var captionButtons : object;
Example
$("selector").wijdialog({captionButtons: {
pin: { visible: false },
refresh: { visible: false },
toggle: { visible: false },
minimize: { visible: false },
maximize: { visible: false }
}
});
Remarks

 

Default Values
Copy Code
{
    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 in the captionButtons object is represented by an object.

property name: The name of the button.

visible: A Boolean value to specify whether the button is visible.

click: The event handler that handles the click event of the button.

iconClassOn: The icon to show in the button's normal state.

iconClassOff: The icon to show after clicking the button.

See Also

Reference

options type
wijdialog jQuery Widget