From ce121da24c661adf038cc71b4cf2e22c914c5720 Mon Sep 17 00:00:00 2001 From: iapyang Date: Mon, 4 Sep 2017 15:42:06 +0800 Subject: [PATCH] update trigger --- uidoc/case/trigger/editor_trigger.md | 42 +++++++++++++++++++++++++++- uidoc/case/trigger/icon_trigger.md | 18 +++++++++++- uidoc/case/trigger/text_trigger.md | 28 ++++++++++++++++++- 3 files changed, 85 insertions(+), 3 deletions(-) diff --git a/uidoc/case/trigger/editor_trigger.md b/uidoc/case/trigger/editor_trigger.md index c972382d1..efa7521f8 100644 --- a/uidoc/case/trigger/editor_trigger.md +++ b/uidoc/case/trigger/editor_trigger.md @@ -1,2 +1,42 @@ -# editor_trigger +# bi.editor_trigger + +### 文本输入框trigger + +{% method %} +[source](https://jsfiddle.net/fineui/8ttm4g1u/) + +{% common %} +```javascript + +BI.createWidget({ + type: "bi.editor_trigger", + element: "body", +}); + +``` + +{% endmethod %} + + + +### 参数 + +| 参数 | 说明 | 类型 | 默认值 | +| ----------------- | ------- | -------- | ---------- | +| validationChecker | 验证函数 | function | BI.emptyFn | +| quitChecker | 退出时验证函数 | function | BI.emptyFn | +| allowBlank | 是否允许为空 | bool | false | +| watermark | 水印 | string | "" | +| errorText | 错误信息 | string | "" | +| triggerWidth | 触发器宽度 | number | 30 | + + + +### 方法 + +| 方法名 | 说明 | 参数 | +| -------- | ---- | ----- | +| setValue | 设置值 | value | +| getVlaue | 获得值 | — | +| setText | | text | diff --git a/uidoc/case/trigger/icon_trigger.md b/uidoc/case/trigger/icon_trigger.md index 212100fc8..27d35bd15 100644 --- a/uidoc/case/trigger/icon_trigger.md +++ b/uidoc/case/trigger/icon_trigger.md @@ -1,2 +1,18 @@ -# icon_trigger +# bi.icon_trigger +### 图标按钮trigger + +{% method %} +[source](https://jsfiddle.net/fineui/qs44h1xy/) + +{% common %} +```javascript + +BI.createWidget({ + type: "bi.icon_trigger", + element: "body", +}); + +``` + +{% endmethod %} diff --git a/uidoc/case/trigger/text_trigger.md b/uidoc/case/trigger/text_trigger.md index 2774f2ed4..46e694879 100644 --- a/uidoc/case/trigger/text_trigger.md +++ b/uidoc/case/trigger/text_trigger.md @@ -1,2 +1,28 @@ -# text_trigger +# bi.text_trigger + +### 文本输入框trigger + +{% method %} +[source](https://jsfiddle.net/fineui/6pz5pjp6/) + +{% common %} +```javascript + +BI.createWidget({ + type: "bi.editor_trigger", + element: "body", +}); + +``` + +{% endmethod %} + +### 方法 + +| 方法名 | 说明 | 参数 | +| -------- | ---- | ----- | +| setValue | 设置值 | value | +| getVlaue | 获得值 | — | + +