jquery-datetime-picker Jquery Datetime Picker

  1. Requirements
  2. Usage
  3. Resources

Yii has only Date Picker but doesn't have datetime picker or timepicker. the initialization of the widget is similar to CJuiDatePicker. I've borrow the same concept in CJuiDatePicker

I've created this extension because most of the existing widget are already outdated especially the 'mobile device slideAccess features'.

this widget support:

  1. jquery ui themes or custom theming.
  2. localization.
  3. model binding support.
  4. slideAccess (mobile support), see the project page url.
  5. datetime/time picker.

Requirements

Yii 1.1.x or above

Usage

extract the files under protected/extensions folder

<?php
$this->widget('ext.jquery-ui-timepicker.BJuiDateTimePicker',array(
    'model'=>$model,
    'attribute'=>'date_from',
    'type'=>'datetime', // available parameter is datetime or time
    //'language'=>'de', // default to english
    //'themeName'=>'sunny', // jquery ui theme, file is under assets folder
    'options'=>array( 
        // put your js options here check http://trentrichardson.com/examples/timepicker/#slider_examples for more info
        'timeFormat'=>'HH:mm:ss',
        'showSecond'=>true,
        'hourGrid'=>4,
        'minuteGrid'=>10,
    ),
    'htmlOptions'=>array(
        'class'=>'input-medium'
    )
));
?>

Resources

1 0
4 followers
3 214 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: bryglen
Created on: Dec 24, 2012
Last updated: 3 years ago

Downloads

show all

Related Extensions