# yii\widgets

> 19 classes of the yii\widgets namespace.

[API reference](/docs/api/index.md) › [yii](/docs/api/yii/index.md) › widgets

## Classes

| Class | Summary |
| --- | --- |
| [`ActiveField`](/docs/api/yii/widgets/activefield/index.md) | ActiveField represents a form input field within an [`ActiveForm`](/docs/api/yii/widgets/activeform/index.md). |
| [`ActiveForm`](/docs/api/yii/widgets/activeform/index.md) | ActiveForm is a widget that builds an interactive HTML form for one or multiple data models. |
| [`ActiveFormAsset`](/docs/api/yii/widgets/activeformasset/index.md) | The asset bundle for the [`ActiveForm`](/docs/api/yii/widgets/activeform/index.md) widget. |
| [`BaseListView`](/docs/api/yii/widgets/baselistview/index.md) abstract | BaseListView is a base class for widgets displaying data from data provider such as ListView and GridView. |
| [`Block`](/docs/api/yii/widgets/block/index.md) | Block records all output between [`begin()`](/docs/api/yii/base/widget/index.md#method-begin) and [`end()`](/docs/api/yii/base/widget/index.md#method-end) calls and stores it in [`View::$blocks`](/docs/api/yii/base/view/index.md#property-blocks). |
| [`Breadcrumbs`](/docs/api/yii/widgets/breadcrumbs/index.md) | Breadcrumbs displays a list of links indicating the position of the current page in the whole site hierarchy. |
| [`ContentDecorator`](/docs/api/yii/widgets/contentdecorator/index.md) | ContentDecorator records all output between [`begin()`](/docs/api/yii/base/widget/index.md#method-begin) and [`end()`](/docs/api/yii/base/widget/index.md#method-end) calls, passes it to the given view file as `$content` and then echoes rendering result. |
| [`DetailView`](/docs/api/yii/widgets/detailview/index.md) | DetailView displays the detail of a single data [`$model`](/docs/api/yii/widgets/detailview/index.md#property-model). |
| [`FragmentCache`](/docs/api/yii/widgets/fragmentcache/index.md) | FragmentCache is used by [`View`](/docs/api/yii/base/view/index.md) to provide caching of page fragments. |
| [`InputWidget`](/docs/api/yii/widgets/inputwidget/index.md) | InputWidget is the base class for widgets that collect user inputs. |
| [`LinkPager`](/docs/api/yii/widgets/linkpager/index.md) | LinkPager displays a list of hyperlinks that lead to different pages of target. |
| [`LinkSorter`](/docs/api/yii/widgets/linksorter/index.md) | LinkSorter renders a list of sort links for the given sort definition. |
| [`ListView`](/docs/api/yii/widgets/listview/index.md) | The ListView widget is used to display data from data provider. Each data model is rendered using the view specified. |
| [`MaskedInput`](/docs/api/yii/widgets/maskedinput/index.md) | MaskedInput generates a masked text input. |
| [`MaskedInputAsset`](/docs/api/yii/widgets/maskedinputasset/index.md) | The asset bundle for the [`MaskedInput`](/docs/api/yii/widgets/maskedinput/index.md) widget. |
| [`Menu`](/docs/api/yii/widgets/menu/index.md) | Menu displays a multi-level menu using nested HTML lists. |
| [`Pjax`](/docs/api/yii/widgets/pjax/index.md) | Pjax is a widget integrating the [pjax](https://github.com/yiisoft/jquery-pjax) jQuery plugin. |
| [`PjaxAsset`](/docs/api/yii/widgets/pjaxasset/index.md) | This asset bundle provides the javascript files required by [`Pjax`](/docs/api/yii/widgets/pjax/index.md) widget. |
| [`Spaceless`](/docs/api/yii/widgets/spaceless/index.md) | Spaceless widget removes whitespace characters between HTML tags. Whitespaces within HTML tags or in a plain text are always left untouched. |