PHPackages                             execut/yii2-dropdown-content-input - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. execut/yii2-dropdown-content-input

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

execut/yii2-dropdown-content-input
==================================

Dropdown field with customized content for yii2

31.8k2JavaScript

Since Jun 26Pushed 5y ago3 watchersCompare

[ Source](https://github.com/execut/yii2-dropdown-content-input)[ Packagist](https://packagist.org/packages/execut/yii2-dropdown-content-input)[ RSS](/packages/execut-yii2-dropdown-content-input/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Dropdown field with customized content for yii2
===============================================

[](#dropdown-field-with-customized-content-for-yii2)

This widget allows you to embed any content in the dropdown list, for example, GridView. To do this you need be transmit of html content in the settings of the container widget ('containerOptions'), where each option of dropdown has class "item" and attributes: name (displayed selected value), val (the selected value for input field). Widget use bootstrap grid for stretching list container by width of row.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

### Install

[](#install)

Either run

```
$ php composer.phar require execut/yii2-dropdown-content-input "dev-master"

```

or add

```
"execut/yii2-dropdown-content-input": "dev-master"

```

to the `require` section of your `composer.json` file.

Simple example
--------------

[](#simple-example)

This example shows how to transmit a GridView in the widget and use widget inside form: [![Expanded first select](https://raw.githubusercontent.com/execut/yii2-dropdown-content-input/master/examples/example1.png)](https://raw.githubusercontent.com/execut/yii2-dropdown-content-input/master/examples/example1.png)[![Expanded three select](https://raw.githubusercontent.com/execut/yii2-dropdown-content-input/master/examples/example2.png)](https://raw.githubusercontent.com/execut/yii2-dropdown-content-input/master/examples/example2.png)

```
