@ -55,6 +55,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
} ,
} ,
valueFormatter : o . valueFormatter ,
valueFormatter : o . valueFormatter ,
itemsCreator : BI . bind ( this . _itemsCreator4Trigger , this ) ,
itemsCreator : BI . bind ( this . _itemsCreator4Trigger , this ) ,
itemFormatter : o . itemFormatter ,
itemHeight : o . itemHeight ,
itemHeight : o . itemHeight ,
value : this . storeValue ,
value : this . storeValue ,
} ) ;
} ) ;
@ -138,31 +139,34 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
self . trigger . setAdapter ( this ) ;
self . trigger . setAdapter ( this ) ;
self . numberCounter . setAdapter ( this ) ;
self . numberCounter . setAdapter ( this ) ;
} ,
} ,
listeners : [ {
listeners : [
eventName : BI . MultiSelectPopupView . EVENT _CHANGE ,
{
action : function ( ) {
eventName : BI . MultiSelectPopupView . EVENT _CHANGE ,
self . _dataChange = true ;
action : function ( ) {
self . storeValue = this . getValue ( ) ;
self . _dataChange = true ;
self . _adjust ( function ( ) {
self . storeValue = this . getValue ( ) ;
assertShowValue ( ) ;
self . _adjust ( function ( ) {
} ) ;
assertShowValue ( ) ;
self . fireEvent ( BI . MultiSelectInsertCombo . EVENT _CLICK _ITEM ) ;
} ) ;
self . fireEvent ( BI . MultiSelectInsertCombo . EVENT _CLICK _ITEM ) ;
}
} , {
eventName : BI . MultiSelectPopupView . EVENT _CLICK _CONFIRM ,
action : function ( ) {
self . _defaultState ( ) ;
}
} , {
eventName : BI . MultiSelectPopupView . EVENT _CLICK _CLEAR ,
action : function ( ) {
self . _dataChange = true ;
self . setValue ( ) ;
self . _defaultState ( ) ;
}
}
}
} , {
] ,
eventName : BI . MultiSelectPopupView . EVENT _CLICK _CONFIRM ,
action : function ( ) {
self . _defaultState ( ) ;
}
} , {
eventName : BI . MultiSelectPopupView . EVENT _CLICK _CLEAR ,
action : function ( ) {
self . _dataChange = true ;
self . setValue ( ) ;
self . _defaultState ( ) ;
}
} ] ,
itemsCreator : o . itemsCreator ,
itemsCreator : o . itemsCreator ,
valueFormatter : o . valueFormatter ,
valueFormatter : o . valueFormatter ,
itemFormatter : o . itemFormatter ,
itemHeight : o . itemHeight ,
itemHeight : o . itemHeight ,
onLoaded : function ( ) {
onLoaded : function ( ) {
BI . nextTick ( function ( ) {
BI . nextTick ( function ( ) {
@ -260,26 +264,28 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI . createWidget ( {
BI . createWidget ( {
type : "bi.absolute" ,
type : "bi.absolute" ,
element : this ,
element : this ,
items : [ {
items : [
el : this . combo ,
{
left : 0 ,
el : this . combo ,
right : 0 ,
left : 0 ,
top : 0 ,
right : 0 ,
bottom : 0
top : 0 ,
} , {
bottom : 0
el : triggerBtn ,
} , {
right : 0 ,
el : triggerBtn ,
top : 0 ,
right : 0 ,
bottom : 0
top : 0 ,
} , {
bottom : 0
el : {
} , {
type : "bi.vertical_adapt" ,
el : {
items : [ this . numberCounter ]
type : "bi.vertical_adapt" ,
} ,
items : [ this . numberCounter ]
right : o . height ,
} ,
top : 0 ,
right : o . height ,
height : o . height ,
top : 0 ,
} ]
height : o . height ,
}
]
} ) ;
} ) ;
} ,
} ,