Yii Framework Forum: Tbdaterangepicker Full Example - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Tbdaterangepicker Full Example Rate Topic: -----

#1 User is offline   Lloyd 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 08-November 12

Posted 07 March 2013 - 12:31 PM

Is there anywhere I can find a full example code that demonstrates how to use
the TbDateRangePicker. (ie: controller, model, and view file)?

Can the TbDateRangePicker be used by itself, without being part of a form?


Thank you
0

#2 User is offline   Lloyd 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 08-November 12

Posted 18 March 2013 - 05:34 PM

Any help would be greatly appreciated

Thank you
0

#3 User is offline   Lloyd 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 08-November 12

Posted 16 May 2013 - 04:06 PM

Still need help with this!!!

Any help would be greatly appreciated

Thank you
0

#4 User is offline   YiiJeka 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 19-July 12

Posted 30 May 2013 - 10:43 AM

You can use it in the forms:
<?php echo $form->dateRangeRow($model, 'dateRangeField',
        array('hint'=>'Click inside! An even a date range field!.',
        'prepend'=>'<i class="icon-calendar">>/i>',
        'options' => array('callback'=>'js:function(start, end){console.log(start.toString("MMMM d, yyyy") + " - " + end.toString("MMMM d, yyyy"));}')
        )); ?>

and filter for gridView:
'filters'=>this->widget('bootstrap.widgets.TbDateRangePicker',array()),

and itself - http://www.dangrossm...tter-bootstrap/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users