make Text's value storable/recallable. Reset it on messages with no arg
This commit is contained in:
parent
1710683295
commit
2e821aff7c
3 changed files with 17 additions and 5 deletions
|
|
@ -3500,13 +3500,19 @@ module.exports.create = function(widgetData,container) {
|
|||
widgetData.id:
|
||||
widgetData.label=='auto'?
|
||||
widgetData.id:
|
||||
widgetData.label
|
||||
widgetData.label,
|
||||
text = label
|
||||
|
||||
|
||||
if (widgetData.vertical) widget.addClass('vertical')
|
||||
|
||||
widget.setValue = function(v,send,sync){
|
||||
widget.text(v==='default'?label:v)
|
||||
text = typeof v=='object' && !v.length?label:v
|
||||
widget.text(text)
|
||||
}
|
||||
|
||||
widget.getValue = function(){
|
||||
return text
|
||||
}
|
||||
|
||||
widget.setValue(label)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue