From b1a1838b6dd378daa3b0c397eead61bbfdabd3ef Mon Sep 17 00:00:00 2001 From: iapyang Date: Fri, 1 Sep 2017 18:04:01 +0800 Subject: [PATCH] update color_chooser --- uidoc/case/color_chooser.md | 39 ++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/uidoc/case/color_chooser.md b/uidoc/case/color_chooser.md index 1833aa6b8..bf4cf5d40 100644 --- a/uidoc/case/color_chooser.md +++ b/uidoc/case/color_chooser.md @@ -1,2 +1,39 @@ -# color_chooser +# bi.color_chooser +### 选色控件 + +{% method %} +[source](https://jsfiddle.net/fineui/7skvd64L/) + +{% common %} +```javascript + +BI.createWidget({ + type: "bi.vertical", + element: "#wrapper", + items: [{ + type: "bi.label", + height: 30, + text: "默认风格" + }, { + type: "bi.segment", + items: [{ + text: "tab1", + value: 1, + selected: true + }, { + text: "tab2", + value: 2 + }, { + text: "tab3 disabled", + disabled: true, + value: 3 + }] + }], + hgap: 50, + vgap: 20 +}); + +``` + +{% endmethod %} \ No newline at end of file