windy
7 years ago
12 changed files with 137 additions and 51 deletions
File diff suppressed because one or more lines are too long
@ -1,2 +1,25 @@
|
||||
# date_combo |
||||
|
||||
##日期选择下拉框(弹出的年月选择可以进一步选择日期) |
||||
|
||||
{% method %} |
||||
[source](https://jsfiddle.net/fineui/ebps32uy/) |
||||
|
||||
{% common %} |
||||
```javascript |
||||
BI.createWidget({ |
||||
type: "bi.date_combo", |
||||
element: "#wrapper", |
||||
width: 300 |
||||
}); |
||||
``` |
||||
|
||||
{% endmethod %} |
||||
|
||||
##参数 |
||||
|
||||
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
||||
| :------ |:------------- | :-----| :----|:----| |
||||
| yearBehaviors |自定义年份选择的行为(详见[button_group](../../base/abstract/button_group.md)) | object| | | |
||||
| monthBehaviors |自定义年份选择的行为(详见[button_group](../../base/abstract/button_group.md)) | object| | | |
||||
--- --- |
@ -1,2 +1,26 @@
|
||||
# date_pane_widget |
||||
|
||||
##日期选择下拉框的弹出面板 |
||||
|
||||
{% method %} |
||||
[source](https://jsfiddle.net/fineui/rL9005u6/) |
||||
|
||||
{% common %} |
||||
```javascript |
||||
BI.createWidget({ |
||||
type: "bi.date_pane_widget", |
||||
element: "#wrapper", |
||||
width: 300 |
||||
}); |
||||
``` |
||||
|
||||
{% endmethod %} |
||||
|
||||
##参数 |
||||
|
||||
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
||||
| :------ |:------------- | :-----| :----|:----| |
||||
| min | 限定可选日期的下限 | string | | '1900-01-01' | |
||||
| max | 限定可选日期的上限 | string | | '2099-12-31' | |
||||
| selectedTime | 选中的初始年月 | obj({year: y, month: m}) | | | |
||||
--- --- |
@ -1,2 +1,24 @@
|
||||
# year_month_combo |
||||
|
||||
##年月选择下拉框 |
||||
|
||||
{% method %} |
||||
[source](https://jsfiddle.net/fineui/ehvjj3xt/) |
||||
|
||||
{% common %} |
||||
```javascript |
||||
BI.createWidget({ |
||||
type: "bi.year_month_combo", |
||||
width: 300 |
||||
}); |
||||
``` |
||||
|
||||
{% endmethod %} |
||||
|
||||
##参数 |
||||
|
||||
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
||||
| :------ |:------------- | :-----| :----|:----| |
||||
| yearBehaviors |自定义年份选择的行为(详见[button_group](../../base/abstract/button_group.md)) | object| | | |
||||
| monthBehaviors |自定义年份选择的行为(详见[button_group](../../base/abstract/button_group.md)) | object| | | |
||||
--- --- |
@ -1,2 +1,24 @@
|
||||
# year_quarter_combo |
||||
|
||||
##年季度选择下拉框 |
||||
|
||||
{% method %} |
||||
[source](https://jsfiddle.net/fineui/xe6Lt6mo/) |
||||
|
||||
{% common %} |
||||
```javascript |
||||
BI.createWidget({ |
||||
type: "bi.year_quarter_combo", |
||||
width: 300 |
||||
}); |
||||
``` |
||||
|
||||
{% endmethod %} |
||||
|
||||
##参数 |
||||
|
||||
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
||||
| :------ |:------------- | :-----| :----|:----| |
||||
| yearBehaviors |自定义年份选择的行为(详见[button_group](../../base/abstract/button_group.md)) | object| | | |
||||
| monthBehaviors |自定义年份选择的行为(详见[button_group](../../base/abstract/button_group.md)) | object| | | |
||||
--- --- |
Loading…
Reference in new issue