TbHtml::activeRangeFieldControlGroup PHP Method

activeRangeFieldControlGroup() public static method

Generates a control group with a range field for a model attribute.
See also: self::activeControlGroup
public static activeRangeFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
return string the generated control group.
    public static function activeRangeFieldControlGroup($model, $attribute, $htmlOptions = array())
    {
        return self::activeControlGroup(self::INPUT_TYPE_RANGE, $model, $attribute, $htmlOptions);
    }

Usage Example

Example #1
0
 public function testActiveRangeFieldControlGroup()
 {
     $I = $this->codeGuy;
     $html = TbHtml::activeRangeFieldControlGroup(new Dummy(), 'range');
     $group = $I->createNode($html, 'div.control-group');
     $label = $group->filter('label.control-label');
     $I->seeNodeChildren($label, array('input[type=range]'));
 }
All Usage Examples Of TbHtml::activeRangeFieldControlGroup
TbHtml