mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update datefield.md
Removed ; at the end of ->setConfig('dmyfields', true) in the three chain example. Is confusing for new users/developers who are not aware of how to chain methods. Closes #3006
This commit is contained in:
parent
068e23d72f
commit
32760555f7
@ -56,7 +56,7 @@ HTML5 placeholders 'day', 'month' and 'year' are enabled by default.
|
|||||||
|
|
||||||
:::php
|
:::php
|
||||||
DateField::create('MyDate')
|
DateField::create('MyDate')
|
||||||
->setConfig('dmyfields', true);
|
->setConfig('dmyfields', true)
|
||||||
->setConfig('dmyseparator', '/') // set the separator
|
->setConfig('dmyseparator', '/') // set the separator
|
||||||
->setConfig('dmyplaceholders', 'true'); // enable HTML 5 Placeholders
|
->setConfig('dmyplaceholders', 'true'); // enable HTML 5 Placeholders
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user