Skip to content

Commit d33ea6e

Browse files
committed
Update README.md
1 parent 882cf56 commit d33ea6e

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ to the require section of your `composer.json` file.
2727

2828
### Input with one column
2929

30+
![Single column example](./docs/images/single-column.gif?raw=true)
31+
3032
For example you want to have an ability of entering several emails of user on profile page.
3133
In this case you can use yii2-multiple-input widget like in the following code
3234

@@ -38,11 +40,14 @@ use unclead\widgets\MultipleInput;
3840
])
3941
->label(false);
4042
?>
43+
```
4144

45+
You can find more detail about this use case [here](docs/single_column.md)
4246

43-
```
4447
### Input with multiple column in each row
4548

49+
![Multiple columns example](./docs/images/multiple-column.gif?raw=true)
50+
4651
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
4752

4853
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;
9095
]);
9196
```
9297

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/)
94101
95102
## Configuration
96103

@@ -106,14 +113,6 @@ Widget support the following options that are additionally recognized over and a
106113
- `items` *array*: the items for drop down list if you set column type like as dropDownList
107114
- `options` *array*: the HTML options of column's input
108115

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/)
117116

118117
##License
119118

0 commit comments

Comments
 (0)