Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Date Picker

$
0
0
Hi

I have added a date picker:
	<div class="row">
		<?php echo $form->labelEx($model,'bookdate'); ?>
                <?php
                    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                                  'name'=>'bookdate', // the name of the field
                                  
                                  // additional javascript options for the date picker plugin
                                  'options'=>array(
                                  'showAnim'=>'fold',
                                  'dateFormat'=>'yy-mm-dd',  // optional Date formatting
                                  'debug'=>true,),
                                  'htmlOptions'=>array(
                                  'style'=>'height:20px;'
                                   ),
                                ));
                ?>
            
		<?php //echo $form->textField($model,'bookdate'); ?>
		<?php echo $form->error($model,'bookdate'); ?>
	</div>



But I would like to disable some dates in the date picker.

I have found how to do that in "plain Jquery"

Any ideas how to do that in Yii??

/JEsper

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>