forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
7 years ago
|
Demo.DatePane = BI.inherit(BI.Widget, {
|
||
|
props: {
|
||
|
baseCls: "demo-datepane"
|
||
|
},
|
||
|
render: function () {
|
||
|
|
||
|
return {
|
||
|
type: "bi.horizontal_auto",
|
||
|
items: [{
|
||
|
type: "bi.vertical",
|
||
|
vgap: 10,
|
||
|
items: [{
|
||
|
type: "bi.label",
|
||
|
cls: "layout-bg2",
|
||
|
text: "bi.date_pane_widget"
|
||
|
}, {
|
||
|
type: "bi.date_pane_widget",
|
||
|
selectedTime: {
|
||
|
year: 2017,
|
||
|
month: 12,
|
||
|
day: 11
|
||
|
},
|
||
|
height:300
|
||
|
},
|
||
|
{
|
||
|
type: "bi.button",
|
||
|
text: "getValue",
|
||
|
handler: function () {
|
||
|
BI.Msg.toast("date" + JSON.stringify(datepane.getValue()));
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
width: "50%"
|
||
|
}]
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
|
||
|
BI.shortcut("demo.date_pane", Demo.DatePane);
|