Revert "Fix anchors in docs (#18344)"

This reverts commit 0f4b147352f2524f2a1530d419d13a8c8acd5069.
This commit is contained in:
Alexander Makarov
2020-11-05 14:14:35 +03:00
parent 50d5fb2bd9
commit 1d514e2ded
37 changed files with 117 additions and 115 deletions

View File

@ -2,12 +2,12 @@ Data widgets
============
Yii provides a set of [widgets](structure-widgets.md) that can be used to display data.
While the [DetailView](#detailview) widget can be used to display data for a single record,
[ListView](#listview) and [GridView](#gridview) can be used to display a list or table of data records
While the [DetailView](#detail-view) widget can be used to display data for a single record,
[ListView](#list-view) and [GridView](#grid-view) can be used to display a list or table of data records
providing features like pagination, sorting and filtering.
DetailView
DetailView <span id="detail-view"></span>
----------
The [[yii\widgets\DetailView|DetailView]] widget displays the details of a single data [[yii\widgets\DetailView::$model|model]].
@ -59,7 +59,7 @@ echo DetailView::widget([
]);
```
ListView
ListView <span id="list-view"></span>
--------
The [[yii\widgets\ListView|ListView]] widget is used to display data from a [data provider](output-data-providers.md).
@ -124,7 +124,7 @@ echo ListView::widget([
These are then also available as variables in the view.
GridView
GridView <span id="grid-view"></span>
--------
Data grid or [[yii\grid\GridView|GridView]] is one of the most powerful Yii widgets. It is extremely useful if you need to quickly build the admin
@ -224,7 +224,7 @@ You may specify various container HTML options by passing arrays to:
- [[yii\grid\Column::contentOptions|contentOptions]]
#### Data column
#### Data column <span id="data-column"></span>
[[yii\grid\DataColumn|Data column]] is used for displaying and sorting data. It is the default column type so the specifying class could be omitted when
using it.
@ -375,7 +375,7 @@ echo GridView::widget([
>
> - https://github.com/yiisoft/yii2/issues/1576
### Filtering data
### Filtering data <span id="filtering-data"></span>
For filtering data, the GridView needs a [model](structure-models.md) that represents the search criteria which is
usually taken from the filter fields in the GridView table.
@ -462,7 +462,7 @@ echo GridView::widget([
]);
```
### Separate filter form
### Separate filter form <span id="separate-filter-form"></span>
Most of the time using GridView header filters is enough, but in case you need a separate filter form,
you can easily add it as well. You can create partial view `_search.php` with the following contents: