File tree Expand file tree Collapse file tree 5 files changed +27
-6
lines changed Expand file tree Collapse file tree 5 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 1
1
Yii2 multiple input change log
2
2
==============================
3
3
4
- 1.2.10 in development
5
- --------------------
4
+ 1.2.11 in development
5
+ ---------------------
6
+
7
+ 1.2.10
8
+ ------
9
+
10
+ - En #59 Added columnClass property (unclead)
6
11
7
12
1.2.9
8
13
-----
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Yii2 widget for handle multiple inputs for an attribute of model
8
8
[ ![ License] ( https://poser.pugx.org/unclead/yii2-multiple-input/license )] ( https://packagist.org/packages/unclead/yii2-multiple-input )
9
9
10
10
##Latest release
11
- The latest version of the extension is v1.2.9 . Follow the [ instruction] ( ./UPGRADE.md ) for upgrading from previous versions
11
+ The latest version of the extension is v1.2.10 . Follow the [ instruction] ( ./UPGRADE.md ) for upgrading from previous versions
12
12
13
13
Contents:
14
14
@@ -61,6 +61,9 @@ Widget support the following options that are additionally recognized over and a
61
61
62
62
** allowEmptyList** * boolean* : whether to allow the empty list
63
63
64
+ ** columnClass** * string* : the name of column class. You can specify your own class to extend base functionality.
65
+ Defaults to ` unclead\widgets\MultipleInputColumn ` for ` MultipleInput ` and ` unclead\widgets\TabularColumn ` for ` TabularInput ` .
66
+
64
67
** columns** * array* : the row columns configuration where you can set the properties which is described below
65
68
66
69
** rowOptions** * array|\Closure* : the HTML attributes for the table body rows. This can be either an array
Original file line number Diff line number Diff line change 9
9
" yii2 tabular input"
10
10
],
11
11
"type" : " yii2-extension" ,
12
- "version" : " 1.2.9 " ,
12
+ "version" : " 1.2.10 " ,
13
13
"license" : " BSD-3-Clause" ,
14
14
"support" : {
15
15
"issues" : " https://github.com/unclead/yii2-multiple-input/issues?state=open" ,
Original file line number Diff line number Diff line change @@ -93,6 +93,12 @@ class MultipleInput extends InputWidget
93
93
*/
94
94
public $ rowOptions = [];
95
95
96
+ /**
97
+ * @var string the name of column class. You can specify your own class to extend base functionality.
98
+ * Defaults to `unclead\widgets\MultipleInputColumn`
99
+ */
100
+ public $ columnClass ;
101
+
96
102
/**
97
103
* Initialization.
98
104
*
@@ -155,7 +161,7 @@ private function createRenderer()
155
161
'limit ' => $ this ->limit ,
156
162
'attributeOptions ' => $ this ->attributeOptions ,
157
163
'data ' => $ this ->data ,
158
- 'columnClass ' => MultipleInputColumn::className (),
164
+ 'columnClass ' => $ this -> columnClass !== null ? $ this -> columnClass : MultipleInputColumn::className (),
159
165
'allowEmptyList ' => $ this ->allowEmptyList ,
160
166
'min ' => $ this ->min ,
161
167
'addButtonPosition ' => $ this ->addButtonPosition ,
Original file line number Diff line number Diff line change @@ -87,6 +87,13 @@ class TabularInput extends Widget
87
87
*/
88
88
public $ rowOptions = [];
89
89
90
+
91
+ /**
92
+ * @var string the name of column class. You can specify your own class to extend base functionality.
93
+ * Defaults to `unclead\widgets\TabularColumn`
94
+ */
95
+ public $ columnClass ;
96
+
90
97
/**
91
98
* Initialization.
92
99
*
@@ -126,7 +133,7 @@ private function createRenderer()
126
133
'limit ' => $ this ->limit ,
127
134
'attributeOptions ' => $ this ->attributeOptions ,
128
135
'data ' => $ this ->models ,
129
- 'columnClass ' => TabularColumn::className (),
136
+ 'columnClass ' => $ this -> columnClass !== null ? $ this -> columnClass : TabularColumn::className (),
130
137
'allowEmptyList ' => $ this ->allowEmptyList ,
131
138
'min ' => $ this ->min ,
132
139
'rowOptions ' => $ this ->rowOptions ,
You can’t perform that action at this time.
0 commit comments