SproutCMS

This is the code documentation for the SproutCMS project

function timepicker()

Renders a timepicker field inside a SPAN, which displays a dropdown date selection box when clicked

Usage

string Fb::timepicker ( string $name , array $attrs , array $params );

Arguments

  1. string $name
    The name of the field
  2. array $attrs
    Attributes for the input element, e.g. ['id' => 'my-timepicker', class' => 'super-input', 'style' => 'font-style: italic']
  3. array $params
    Additional options:
           'min' Minimum allowed time in 24-hour format with a colon, e.g. '07:00' for 7am
           'max' Maximum allowed time in 24-hour format with a colon, e.g. '20:30' for 8:30pm
           'increment' Time increments e.g. 30 is 30 minute increments

Return value

  • string
    HTML