|
|
@ -39,6 +39,7 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { |
|
|
|
callback({ |
|
|
|
callback({ |
|
|
|
items: BI.map(self.storeValue.value, function (i, v) { |
|
|
|
items: BI.map(self.storeValue.value, function (i, v) { |
|
|
|
var txt = opts.valueFormatter(v) || v; |
|
|
|
var txt = opts.valueFormatter(v) || v; |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
text: txt, |
|
|
|
text: txt, |
|
|
|
value: v, |
|
|
|
value: v, |
|
|
@ -46,6 +47,7 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}) |
|
|
|
}) |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
opts.itemsCreator(op, callback); |
|
|
|
opts.itemsCreator(op, callback); |
|
|
@ -54,6 +56,7 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this.continueSelect = BI.createWidget({ |
|
|
|
this.continueSelect = BI.createWidget({ |
|
|
|
type: "bi.text_button", |
|
|
|
type: "bi.text_button", |
|
|
|
|
|
|
|
title: BI.i18nText("BI-Continue_Select"), |
|
|
|
text: BI.i18nText("BI-Continue_Select"), |
|
|
|
text: BI.i18nText("BI-Continue_Select"), |
|
|
|
cls: "multi-select-check-selected bi-high-light" |
|
|
|
cls: "multi-select-check-selected bi-high-light" |
|
|
|
}); |
|
|
|
}); |
|
|
@ -69,18 +72,20 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { |
|
|
|
height: this.constants.height, |
|
|
|
height: this.constants.height, |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
|
|
|
columnSize: ["auto", "auto"], |
|
|
|
cls: "multi-select-continue-select", |
|
|
|
cls: "multi-select-continue-select", |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
|
|
|
|
title: BI.i18nText("BI-Selected_Data"), |
|
|
|
text: BI.i18nText("BI-Selected_Data") |
|
|
|
text: BI.i18nText("BI-Selected_Data") |
|
|
|
}, |
|
|
|
}, |
|
|
|
lgap: this.constants.lgap |
|
|
|
lgap: this.constants.lgap |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
el: this.continueSelect, |
|
|
|
el: this.continueSelect, |
|
|
|
lgap: this.constants.lgap |
|
|
|
hgap: this.constants.lgap |
|
|
|
}] |
|
|
|
}] |
|
|
|
}, |
|
|
|
}, |
|
|
|
tgap: this.constants.tgap |
|
|
|
tgap: this.constants.tgap |
|
|
@ -105,4 +110,4 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.multi_select_check_pane", BI.MultiSelectCheckPane); |
|
|
|
BI.shortcut("bi.multi_select_check_pane", BI.MultiSelectCheckPane); |
|
|
|