PHP Class Carbon_Fields\Field\Date_Field

Inheritance: extends Field
Show file Open project: htmlburger/carbon-fields

Public Properties

Property Type Description
$datepicker_options Datepicker options

Public Methods

Method Description
admin_enqueue_scripts ( ) Hook administration scripts and styles.
set_datepicker_options ( $options ) Set datepicker options
set_options ( $options ) This method is deprecated since it conflicts with the options concept in predefined option fields.
template ( ) The Underscore template of this field
to_json ( boolean $load ) : array Returns an array that holds the field data, suitable for JSON representation.

Method Details

admin_enqueue_scripts() public static method

Hook administration scripts and styles.
public static admin_enqueue_scripts ( )

set_datepicker_options() public method

Set datepicker options
public set_datepicker_options ( $options )

set_options() public method

This method is deprecated since it conflicts with the options concept in predefined option fields.
Deprecation:
public set_options ( $options )

template() public method

The Underscore template of this field
public template ( )

to_json() public method

This data will be available in the Underscore template and the Backbone Model.
public to_json ( boolean $load ) : array
$load boolean Should the value be loaded from the database or use the value from the current instance.
return array

Property Details

$datepicker_options public property

Datepicker options
public $datepicker_options