fjuidatepicker DatePicker input control, can be used standalone or combined to allow user select date range.

  1. Requirements
  2. Usage

Use in pair to support date range input without JS validation for start < end. Also can be used in CGridView as a filter input.

Requirements

No special requirement except that we test this widget on Yii 1.1.3

Usage

Use in CGridView as usual. This widget fix a JS event binding bug caused when the grid is updated by Ajax filter.

Allow user to select a date range: set the range property in both start date and end date widget to the same value (see sample below).

<div class="row">
        <label>Period start</label>
        <?php $this->widget('FJuiDatePicker', array('model'=>$model, 'attribute'=>'period_start', 'range' => 'eval_period')); ?>
    </div>

	<div class="row">
        <label>Period end</label>
        <?php $this->widget('FJuiDatePicker', array('model'=>$model, 'attribute'=>'period_end', 'range' => 'eval_period')); ?>
	</div>
6 0
7 followers
1 791 downloads
Yii Version: 1.1
License: (not set)
Category: Date and Time
Developed by: Hudson Nguyen
Created on: Dec 28, 2010
Last updated: 7 years ago

Downloads

show all

Related Extensions