@@ -27,6 +27,8 @@ to the require section of your `composer.json` file.
27
27
28
28
### Input with one column
29
29
30
+ ![ Single column example] ( ./docs/images/single-column.gif?raw=true )
31
+
30
32
For example you want to have an ability of entering several emails of user on profile page.
31
33
In this case you can use yii2-multiple-input widget like in the following code
32
34
@@ -38,11 +40,14 @@ use unclead\widgets\MultipleInput;
38
40
])
39
41
->label(false);
40
42
?>
43
+ ```
41
44
45
+ You can find more detail about this use case [ here] ( docs/single_column.md )
42
46
43
- ```
44
47
### Input with multiple column in each row
45
48
49
+ ![ Multiple columns example] ( ./docs/images/multiple-column.gif?raw=true )
50
+
46
51
For example you keep some data in json format in attribute of model. Imagine that it is an absctract user schedule with keys: user_id, day, priority
47
52
48
53
On the edit page you want to be able to manage this schedule and you can you yii2-multiple-input widget like in the following code
@@ -90,7 +95,9 @@ use unclead\widgets\MultipleInput;
90
95
]);
91
96
```
92
97
93
- Widget has some configuration options that are described below
98
+ You can find more detail about this use case [ here] ( docs/multiple_columns.md )
99
+
100
+ > Also you can find source code of examples [ here] ( ./examples/ )
94
101
95
102
## Configuration
96
103
@@ -106,14 +113,6 @@ Widget support the following options that are additionally recognized over and a
106
113
- ` items ` * array* : the items for drop down list if you set column type like as dropDownList
107
114
- ` options ` * array* : the HTML options of column's input
108
115
109
- ##Examples
110
-
111
- Look at the example pages for getting more information about use cases
112
-
113
- - [ Single column example] ( docs/single_column.md )
114
- - [ Multiple columns example] ( docs/multiple_columns.md )
115
-
116
- Also you cad find source code of examples [ here] ( ./examples/ )
117
116
118
117
##License
119
118
0 commit comments