HTML string to wrap the <input> + the generated image to open the datepicker
Options for the datepicker widget used to render the UI. See the jQuery UI documentation for all available options.
Default values below:
showOn: both buttonImage: static/novius-os/admin/novius-os/img/icons/date-picker.png buttonImageOnly: true autoSize: true dateFormat: yy-mm-dd showButtonPanel: true changeMonth: true changeYear: true showOtherMonths: true selectOtherMonths: true gotoCurrent: true firstDay: 1 showAnim: slideDown
Parameters: |
|
---|---|
Returns: | The <input> tag with JavaScript to initialise it |
Displays a date picker in a standalone manner.
Adding a date picker in a CRUD form configuration:
<?php
return array(
'label' => '',
'renderer' => 'Nos\Renderer_Date_Picker',
'renderer_options' => array(
'datepicker' => array(),
'wrapper' => '<div class="datepicker-wrapper"></div>',
),
);
Displaying a date picker:
<?php
echo Nos\Renderer_Date_Picker::renderer(array(
'name' => 'my_date',
'class' => 'some_class',
'value' => '2013-02-13',
'renderer_options' => array(
'datepicker' => array(),
'wrapper' => '<div class="datepicker-wrapper"></div>',
),
));