Skip to content

Commit 1d25dae

Browse files
committed
Update README
1 parent 5c2f2d7 commit 1d25dae

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ Contents:
1616
- [Configuration](#configuration)
1717
- [Usage](#usage)
1818
- [Tips and tricks](#tips-and-tricks)
19+
- [How to customize buttons](#how-to-customize-buttons)
20+
- [Work with empty list](#work-with-empty-list)
21+
- [Guess column title](#guess-column-title)
22+
- [Ajax loading of a widget](#ajax-loading)
23+
- [Using of a placeholder {multiple_index}](#using-placeholder)
1924
- [Javascript Events](#javascript-events)
2025
- [Renderers](#renderers)
2126

@@ -48,9 +53,9 @@ Widget support the following options that are additionally recognized over and a
4853

4954
**attributeOptions** *array*: client-side attribute options, e.g. enableAjaxValidation. You may use this property in case when
5055
you use widget without a model, since in this case widget is not able to detect client-side options automatically
51-
56+
5257
**addButtonPosition** *integer*: the position of `add` button. This can be MultipleInput::POS_HEADER or MultipleInput::POS_ROW.
53-
58+
5459
**addButtonOptions** *array*: the HTML options for `add` button. Can contains `class` and `label` keys
5560

5661
**removeButtonOptions** *array*: the HTML options for `add` button. Can contains `class` and `label` keys
@@ -61,7 +66,7 @@ Widget support the following options that are additionally recognized over and a
6166

6267
**allowEmptyList** *boolean*: whether to allow the empty list
6368

64-
**columnClass** *string*: the name of column class. You can specify your own class to extend base functionality.
69+
**columnClass** *string*: the name of column class. You can specify your own class to extend base functionality.
6570
Defaults to `unclead\widgets\MultipleInputColumn` for `MultipleInput` and `unclead\widgets\TabularColumn` for `TabularInput`.
6671

6772
**columns** *array*: the row columns configuration where you can set the properties which is described below
@@ -86,7 +91,7 @@ function ($model, $index, $context)
8691

8792
**title** *string*: the column title
8893

89-
**value** *Closure*: you can set it to an anonymous function with the following signature:
94+
**value** *Closure*: you can set it to an anonymous function with the following signature:
9095

9196
```php
9297
function($data) {}
@@ -95,14 +100,14 @@ function($data) {}
95100
**defaultValue** *string*: default value of input
96101

97102
**items** *array*|*Closure*: the items for input with type dropDownList, listBox, checkboxList, radioList
98-
or anonymous function which return array of items and has the following signature:
103+
or anonymous function which return array of items and has the following signature:
99104

100105
```php
101106
function($data) {}
102107
```
103108

104109
**options** *array*|*Closure*: the HTML attributes for the input, you can set it as array
105-
or an anonymous function with the following signature:
110+
or an anonymous function with the following signature:
106111

107112
```php
108113
function($data) {}
@@ -339,7 +344,7 @@ In some cases you need to have the ability to delete all rows in the list. For t
339344

340345
```
341346

342-
Also you can set `0` in `min` option if you don't need first blank row when data is empty.
347+
Also you can set `0` in `min` option if you don't need first blank row when data is empty.
343348

344349
### Guess column title
345350

@@ -357,7 +362,7 @@ In this case you can use `enableGuessTitle` option like in the example below:
357362

358363
```
359364

360-
### Ajax loading of a widget
365+
### Ajax loading of a widget <a id="ajax-loading"></a>
361366

362367
Assume you want to load a widget via ajax and then show it inside modal window. In this case you MUST:
363368

@@ -366,7 +371,7 @@ Assume you want to load a widget via ajax and then show it inside modal window.
366371

367372
You can fina an example of usage in a discussion of [issue](https://github.com/unclead/yii2-multiple-input/issues/58)
368373

369-
### Using of a placeholder {multiple_index}
374+
### Using of a placeholder {multiple_index} <a id="using-placeholder"></a>
370375

371376
You can use a placeholder {multiple index} in a widget configuration, e.g. for implementation of dependent drop down lists.
372377

0 commit comments

Comments
 (0)