SproutCMS

This is the code documentation for the SproutCMS project

function range()

Generates a HTML5 range field

Usage

string Fb::range ( string $name , array $attrs , array $options );

Arguments

  1. string $name
    Field name
  2. array $attrs
    Extra attributes for the INPUT element. A range element takes these attributes:
           'min' The minimum value, default 0, set to NULL for no limit
           'max' The maximum value, default 100, set to NULL for no limit
           'step' Difference between each grade on the range
  3. array $options
    Ignored

Return value

  • string
    HTML with elements including INPUT and SCRIPT