public static activeListBoxControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string | ||
$model | CModel | the data model. |
$attribute | string | the attribute. |
$data | array | data for generating the list options (value=>display). |
$htmlOptions | array | additional HTML attributes. |
return | string | the generated control group. |
public static function activeListBoxControlGroup($model, $attribute, $data = array(), $htmlOptions = array())
{
return self::activeControlGroup(self::INPUT_TYPE_LISTBOX, $model, $attribute, $htmlOptions, $data);
}
public function testActiveListBoxControlGroup() { $I = $this->codeGuy; $html = TbHtml::activeListBoxControlGroup(new Dummy(), 'listbox', array('1', '2', '3', '4', '5')); $group = $I->createNode($html, 'div.control-group'); $controls = $group->filter('div.controls'); $I->seeNodeChildren($controls, array('select')); }