TbHtml::activeRangeField PHP Méthode

activeRangeField() public static méthode

Generates a range field input for a model attribute.
See also: self::activeTextInputField
public static activeRangeField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Résultat string the generated input field.
    public static function activeRangeField($model, $attribute, $htmlOptions = array())
    {
        return self::activeTextInputField('range', $model, $attribute, $htmlOptions);
    }

Usage Example

 /**
  * Generates a range field for a model attribute.
  * @param CModel $model the data model.
  * @param string $attribute the attribute.
  * @param array $htmlOptions additional HTML attributes.
  * @return string the generated input field.
  * @see TbHtml::activeRangeField
  */
 public function rangeField($model, $attribute, $htmlOptions = array())
 {
     return TbHtml::activeRangeField($model, $attribute, $htmlOptions);
 }
All Usage Examples Of TbHtml::activeRangeField
TbHtml