The captionButtons option determines the caption buttons to show on the wijdialog title bar.
$("selector").wijdialog({captionButtons: { pin: { visible: false }, refresh: { visible: false }, toggle: { visible: false }, minimize: { visible: false }, maximize: { visible: false } } });
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.