Vegas CMF Form Elements

Vegas\Forms\Element\Timepicker

Simple input with bootstrap-datetimepicker. By default, time will be saved as string with HH:mm format.

All required js and css files are included in vegas library. Check installation guide for more details.

Configuration

namespace Foo\Forms;

use Vegas\Forms\Element\Timepicker;

class Bar extends \Vegas\Forms\Form
{
    public function initialize()
    {
        $time = new Timepicker('time');
        $time->setAssetsManager($this->assets);
        $this->add($time);

        // ...
    }
}