Option Controls Attributes

AttributeDescription
typestring
button,checkbox,drop,radio,checklist,spin,text
varstring
The saved variable name. This is the leaf path in the U1DB.configs, for example: U1DB.configs["recount/cfg1/cfg2"]
textstring
The shown text.
callbackfunction(cfg, v, loading)
The most important attribute.
lowertrue/false
Lower the control panel frame or not.
enableOnNotLoadtrue/false
disableOnLoadtrue/false
alwaysEnabletrue/false
tipstring use ` as a linebreak.
defaultstring or number or bool
The default value of this option.
getvaluevalue = function()
Get the value of this option from addon's own config variable.
confirmstring
If provided, there will be a confirm dialog box before changing this option.
reloadtrue/false
Add a "Reload before take effect" to the option's tooltip and the ReloadUI button will glow.
options{"label1","value1","label2","value2",} only used with control "radio"/"drop"/"checklist"
colsnumber only used with control "radio"/"checklist"
Column of the option list.
range{min, max, step} only used with control "spin"
Must all be numbers.
placefunction(parent, cfg, last)
Custom Control

Comments

Posts Quoted:
Reply
Clear All Quotes