|
|
|
@ -1,9 +1,38 @@
|
|
|
|
|
import { |
|
|
|
|
ComboGroup, |
|
|
|
|
IconTextIconItem, |
|
|
|
|
SingleSelectItem, |
|
|
|
|
Combo, |
|
|
|
|
Button, |
|
|
|
|
ButtonGroup, |
|
|
|
|
Decorators, |
|
|
|
|
SingleSelectRadioItem, |
|
|
|
|
VerticalLayout, |
|
|
|
|
MultiSelectItem, |
|
|
|
|
Label, |
|
|
|
|
MultiSelectBar, |
|
|
|
|
TextButton, |
|
|
|
|
Loader, |
|
|
|
|
FloatLeftLayout, |
|
|
|
|
ButtonTree, |
|
|
|
|
AdaptiveLayout, |
|
|
|
|
TableLayout, |
|
|
|
|
AbsoluteLayout, |
|
|
|
|
Navigation, |
|
|
|
|
GridLayout, |
|
|
|
|
Widget, |
|
|
|
|
createWidget, |
|
|
|
|
createItems, |
|
|
|
|
deepClone, |
|
|
|
|
map, |
|
|
|
|
delay, |
|
|
|
|
random, |
|
|
|
|
makeArray, |
|
|
|
|
Msg |
|
|
|
|
} from "@fui/core"; |
|
|
|
|
|
|
|
|
|
import { ComboGroup, IconTextIconItem, SingleSelectItem, Combo, Button, ButtonGroup, SingleSelectRadioItem, VerticalLayout, MultiSelectItem, Label, MultiSelectBar, TextButton, Loader, FloatLeftLayout, ButtonTree, AdaptiveLayout, TableLayout, AbsoluteLayout, Navigation, GridLayout, shortcut, Widget, createWidget, createItems, deepClone, map, delay, random, makeArray, Msg } from "@fui/core" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@shortcut() |
|
|
|
|
@Decorators.shortcut() |
|
|
|
|
export class ComboDemo extends Widget { |
|
|
|
|
static xtype = "demo.combo"; |
|
|
|
|
|
|
|
|
@ -92,7 +121,8 @@ export class ComboDemo extends Widget {
|
|
|
|
|
items: createItems(deepClone(this.years), { |
|
|
|
|
type: SingleSelectRadioItem.xtype, |
|
|
|
|
height: 25, |
|
|
|
|
handler(v) {}, |
|
|
|
|
handler(v) { |
|
|
|
|
}, |
|
|
|
|
}), |
|
|
|
|
layouts: [ |
|
|
|
|
{ |
|
|
|
@ -116,7 +146,8 @@ export class ComboDemo extends Widget {
|
|
|
|
|
items: createItems(deepClone(this.years), { |
|
|
|
|
type: MultiSelectItem.xtype, |
|
|
|
|
height: 25, |
|
|
|
|
handler(v) {}, |
|
|
|
|
handler(v) { |
|
|
|
|
}, |
|
|
|
|
}), |
|
|
|
|
chooseType: 1, |
|
|
|
|
layouts: [ |
|
|
|
@ -296,7 +327,8 @@ export class ComboDemo extends Widget {
|
|
|
|
|
type: SingleSelectItem.xtype, |
|
|
|
|
iconWidth: 25, |
|
|
|
|
height: 25, |
|
|
|
|
handler(v) {}, |
|
|
|
|
handler(v) { |
|
|
|
|
}, |
|
|
|
|
}), |
|
|
|
|
chooseType: 1, |
|
|
|
|
layouts: [ |
|
|
|
@ -323,7 +355,8 @@ export class ComboDemo extends Widget {
|
|
|
|
|
items: createItems(deepClone(this.child), { |
|
|
|
|
type: SingleSelectItem.xtype, |
|
|
|
|
height: 25, |
|
|
|
|
handler(v) {}, |
|
|
|
|
handler(v) { |
|
|
|
|
}, |
|
|
|
|
}), |
|
|
|
|
layouts: [ |
|
|
|
|
{ |
|
|
|
@ -348,7 +381,8 @@ export class ComboDemo extends Widget {
|
|
|
|
|
items: createItems(deepClone(this.months), { |
|
|
|
|
type: SingleSelectItem.xtype, |
|
|
|
|
cls: "button-combo", |
|
|
|
|
handler(v) {}, |
|
|
|
|
handler(v) { |
|
|
|
|
}, |
|
|
|
|
}), |
|
|
|
|
layouts: [ |
|
|
|
|
{ |
|
|
|
|