mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed documentation for DatetimeField
This commit is contained in:
parent
59230d8e39
commit
eda75a2aa9
@ -8,7 +8,15 @@
|
||||
*
|
||||
* # Configuration
|
||||
*
|
||||
* All options in {@link setConfig()} are passed through to {@link DateField} and {@link TimeField}.
|
||||
* The {@link setConfig()} method is only used to configure common properties of this field.
|
||||
* To configure the {@link DateField} and {@link TimeField} instances contained within, use their own {@link setConfig()} methods.
|
||||
*
|
||||
* Example:
|
||||
* <code>
|
||||
* $field = new DatetimeField('Name', 'Label');
|
||||
* $field->setConfig('datavalueformat', 'YYYY-MM-dd HH:mm'); // global setting
|
||||
* $field->getDateField()->setConfig('showcalendar', 1); // field-specific setting
|
||||
* </code>
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
|
Loading…
Reference in New Issue
Block a user