|
|
|
@ -30,7 +30,15 @@ BI.Toast = BI.inherit(BI.Tip, {
|
|
|
|
|
e.stopEvent(); |
|
|
|
|
return false; |
|
|
|
|
}; |
|
|
|
|
this.element.bind({click: fn, mousedown: fn, mouseup: fn, mouseover: fn, mouseenter: fn, mouseleave: fn, mousemove: fn}); |
|
|
|
|
this.element.bind({ |
|
|
|
|
click: fn, |
|
|
|
|
mousedown: fn, |
|
|
|
|
mouseup: fn, |
|
|
|
|
mouseover: fn, |
|
|
|
|
mouseenter: fn, |
|
|
|
|
mouseleave: fn, |
|
|
|
|
mousemove: fn |
|
|
|
|
}); |
|
|
|
|
var cls = "close-font"; |
|
|
|
|
switch (o.level) { |
|
|
|
|
case "success": |
|
|
|
@ -78,7 +86,8 @@ BI.Toast = BI.inherit(BI.Tip, {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.text = BI.createWidget({ |
|
|
|
|
type: "bi.horizontal_adapt", |
|
|
|
|
type: "bi.horizontal", |
|
|
|
|
horizontalAlign: BI.HorizontalAlign.Stretch, |
|
|
|
|
element: this, |
|
|
|
|
items: items, |
|
|
|
|
vgap: 7, |
|
|
|
|