Option Controls Attributes
Attribute | Description |
---|---|
type | string button,checkbox,drop,radio,checklist,spin,text |
var | string The saved variable name. This is the leaf path in the U1DB.configs, for example: U1DB.configs["recount/cfg1/cfg2"] |
text | string The shown text. |
callback | function(cfg, v, loading) The most important attribute. |
lower | true/false Lower the control panel frame or not. |
enableOnNotLoad | true/false |
disableOnLoad | true/false |
alwaysEnable | true/false |
tip | string use ` as a linebreak. |
default | string or number or bool The default value of this option. |
getvalue | value = function() Get the value of this option from addon's own config variable. |
confirm | string If provided, there will be a confirm dialog box before changing this option. |
reload | true/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" |
cols | number only used with control "radio"/"checklist" Column of the option list. |
range | {min, max, step} only used with control "spin" Must all be numbers. |
place | function(parent, cfg, last) Custom Control |
Comments