|
|
@ -42,7 +42,7 @@ export class ButtonGroup extends Widget { |
|
|
|
static xtype = "bi.button_group"; |
|
|
|
static xtype = "bi.button_group"; |
|
|
|
|
|
|
|
|
|
|
|
static EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
static EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
|
|
static CHOOSE_TYPE_SINGLE = Selection.Single; |
|
|
|
static CHOOSE_TYPE_SINGLE = Selection.Single; |
|
|
|
static CHOOSE_TYPE_MULTI = Selection.Multi; |
|
|
|
static CHOOSE_TYPE_MULTI = Selection.Multi; |
|
|
|
static CHOOSE_TYPE_ALL = Selection.All; |
|
|
|
static CHOOSE_TYPE_ALL = Selection.All; |
|
|
@ -86,8 +86,8 @@ export class ButtonGroup extends Widget { |
|
|
|
this.setValue(newValue); |
|
|
|
this.setValue(newValue); |
|
|
|
}) |
|
|
|
}) |
|
|
|
: value; |
|
|
|
: value; |
|
|
|
if (isKey(value) || isNotEmptyArray(value)) { |
|
|
|
if (isKey(this.options.value) || isNotEmptyArray(this.options.value)) { |
|
|
|
this.setValue(value); |
|
|
|
this.setValue(this.options.value); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|