Time Picker

class Nos\Renderer_Time_Picker
Extends Nos\Renderer.
This renderer is used to pick a time.
It’s based on jQuery UI Time Picker.
Time Picker UI

Configuration

All the jQuery UI Time Picker options can be used.

Methods

Nos\Renderer_Time_Picker::renderer($renderer)
Parameters:
  • $renderer (Model) – HTML attributes (name, class, id, value, etc.), with a special key renderer_options
Returns:

The <input> tag with JavaScript to initialise it

Displays a time picker in a standalone manner.

Example

Adding a time picker in a CRUD form configuration:

<?php

return array(
    'label' => '',
    'renderer' => 'Nos\Renderer_Time_Picker',
    'renderer_options' => array(
        // jQuery UI Time Picker options
    ),
);

Displaying a time picker:

<?php

echo Nos\Renderer_Time_Picker::renderer(array(
    'name' => 'my_time',
    'class' => 'some_class',
    'value' => '17:48',
    'renderer_options' => array(
        // jQuery UI Time Picker options
    ),
));
Read the Docs v: dubrovka
Versions
latest
elche
dubrovka
chiba.2
chiba.1
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.