<item
id = "open" // required, will generated automatically if empty
type = "buttonTwoState" // required, item type
img = "open.gif" // optional, icon for enabled item
imgdis = "open_dis.gif" // optional, icon for disabled image
text = "Open" // optional, item text
title = "Tooltip here" // optional, tooltip for item
enabled = "false" // optional, disable item
hidden = "true" // optional, hide item
action = "function_name" // optional, function name to exec on click
selected = "true" // optional, pressed on init
>
// optional, userdata
<userdata name="p1">value1</userdata>
<userdata name="p2">value2</userdata>
</item>
|
{
id: "open" // required, will generated automatically if empty
type: "buttonTwoState" // required, item type
img: "open.gif" // optional, icon for enabled item
imgdis: "open_dis.gif" // optional, icon for disabled image
text: "Open" // optional, item text
title: "Tooltip here" // optional, tooltip for item
enabled: false // optional, disable item
hidden: true // optional, hide item
action: "function_name" // optional, function name to exec on click
selected: true // optional, pressed on init
userdata: { // optional, userdata
p1: "value1" // userdara, name:value pairs
p2: "value2"
}
// deprecated:
img_disabled: "open_dis.gif" // => imgdis: "open_dis.gif"
disabled: true // => enabled: false
pressed: true // => selected: true
}
|