Skip to content

Commit 3c7b734

Browse files
committed
Update README.md
1 parent 456b625 commit 3c7b734

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,28 @@ You can find more detail about this use case [here](docs/multiple_columns.md)
103103

104104
Widget support the following options that are additionally recognized over and above the configuration options in the InputWidget:
105105

106-
- `limit`: *integer*: rows limit
106+
- `limit`: *integer*: rows limit. If not set will defaul to unlimited
107107
- `columns` *array*: the row columns configuration where you can set the following properties:
108108
- `name` *string*: input name. *Required options*
109-
- `type` *string*: type of the input. If not set will default to `textInput` **TBD**
109+
- `type` *string*: type of the input. If not set will default to `textInput`. Read more about the types described below
110110
- `title` *string*: the column title
111-
- `value` *Closure*: you can set it to an anonymous function with the following signature: ```function($data) { return'something'; }```
112-
- `defaultValue` *string*: default value of column's input,
113-
- `items` *array*: the items for drop down list if you set column type like as dropDownList
114-
- `options` *array*: the HTML options of column's input
111+
- `value` *Closure*: you can set it to an anonymous function with the following signature: ```function($data) {}```
112+
- `defaultValue` *string*: default value of input,
113+
- `items` *array*: the items for input with type dropDownList, listBox, checkboxList, radioList
114+
- `options` *array*: the HTML options of input
115115

116+
### Input types
117+
118+
Each column in a row can has their own type. Widget supports:
119+
120+
- all yii2 html input types:
121+
- `textInput`
122+
- `dropDownList`
123+
- `radioList`
124+
- `textarea`
125+
- For more detail look at [Html helper class](http://www.yiiframework.com/doc-2.0/yii-helpers-html.html)
126+
127+
- use type `static` in case when you just want to render text instead of input
116128

117129
##License
118130

0 commit comments

Comments
 (0)