@@ -103,16 +103,28 @@ You can find more detail about this use case [here](docs/multiple_columns.md)
103
103
104
104
Widget support the following options that are additionally recognized over and above the configuration options in the InputWidget:
105
105
106
- - ` limit ` : * integer* : rows limit
106
+ - ` limit ` : * integer* : rows limit. If not set will defaul to unlimited
107
107
- ` columns ` * array* : the row columns configuration where you can set the following properties:
108
108
- ` 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
110
110
- ` 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
115
115
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
116
128
117
129
##License
118
130
0 commit comments