richie
6 years ago
4 changed files with 79 additions and 21 deletions
@ -1,20 +1,61 @@ |
|||||||
window.onload = function () { |
window.onload = function () { |
||||||
let button = BI.createWidget({ |
let label = BI.createWidget({ |
||||||
type : "bi.button", |
type: "bi.label", |
||||||
text : PluginHelper.i18nText("Fine-Design_Basic_Update_Plugin_Manager_Resource_Warn"), |
text: PluginHelper.i18nText("Fine-Design_Basic_Update_Plugin_Manager_Resource_Warn"), |
||||||
|
height: 30 |
||||||
|
}); |
||||||
|
let callback = function(text) { |
||||||
|
download.setValue(text); |
||||||
|
}; |
||||||
|
let buttonOK = BI.createWidget({ |
||||||
|
type: "bi.button", |
||||||
|
text: PluginHelper.i18nText("Fine-Design_Basic_Update_Plugin_Manager_Download"), |
||||||
level: 'common', |
level: 'common', |
||||||
height: 30, |
height: 30, |
||||||
handler : function () { |
handler: function () { |
||||||
PluginHelper.startDownload(); |
PluginHelper.startDownload(callback); |
||||||
} |
} |
||||||
}); |
}); |
||||||
|
let buttonClose = BI.createWidget({ |
||||||
|
type: "bi.button", |
||||||
|
text: PluginHelper.i18nText("Fine-Design_Basic_Update_Plugin_Manager_Close"), |
||||||
|
level: 'warning', |
||||||
|
height: 30, |
||||||
|
handler: function () { |
||||||
|
PluginHelper.closeWindow(); |
||||||
|
} |
||||||
|
}); |
||||||
|
|
||||||
|
let download = BI.createWidget({ |
||||||
|
type: "bi.label", |
||||||
|
height: 30 |
||||||
|
}); |
||||||
|
let left = 300; |
||||||
|
let top = 200; |
||||||
BI.createWidget({ |
BI.createWidget({ |
||||||
type:"bi.absolute", |
type: "bi.absolute", |
||||||
element: "body", |
element: "body", |
||||||
items: [{ |
items: [ |
||||||
el: button, |
{ |
||||||
left: 100, |
el: label, |
||||||
top: 100 |
left: left, |
||||||
}] |
top: top |
||||||
|
}, |
||||||
|
{ |
||||||
|
el : buttonOK, |
||||||
|
left : left, |
||||||
|
top : top + 40 |
||||||
|
}, |
||||||
|
{ |
||||||
|
el : buttonClose, |
||||||
|
left : left + 100, |
||||||
|
top : top + 40 |
||||||
|
}, |
||||||
|
{ |
||||||
|
el : download, |
||||||
|
left : left, |
||||||
|
top : top + 80 |
||||||
|
} |
||||||
|
] |
||||||
}); |
}); |
||||||
}; |
}; |
Loading…
Reference in new issue