mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
Updated setShowCalendar() use
This commit is contained in:
parent
1df00831f4
commit
f465d5c3ff
@ -243,9 +243,9 @@ class BasicFieldsTestPage extends TestPage
|
|||||||
Object::create('SilverStripe\\Forms\\DatetimeField', 'DateTime', 'DateTime'),
|
Object::create('SilverStripe\\Forms\\DatetimeField', 'DateTime', 'DateTime'),
|
||||||
$dateTimeShowCalendar = Object::create('SilverStripe\\Forms\\DatetimeField', 'DateTimeWithCalendar', 'DateTime with calendar')
|
$dateTimeShowCalendar = Object::create('SilverStripe\\Forms\\DatetimeField', 'DateTimeWithCalendar', 'DateTime with calendar')
|
||||||
));
|
));
|
||||||
$calendarDateField->setConfig('showcalendar', true);
|
$calendarDateField->setShowCalendar(true);
|
||||||
$dateTimeShowCalendar->getDateField()->setConfig('showcalendar', true);
|
$dateTimeShowCalendar->getDateField()->setShowCalendar(true);
|
||||||
$dateTimeShowCalendar->getTimeField()->setConfig('showdropdown', true);
|
// $dateTimeShowCalendar->getTimeField()->setConfig('showdropdown', true);
|
||||||
$dateTimeShowCalendar->setRightTitle('Right title');
|
$dateTimeShowCalendar->setRightTitle('Right title');
|
||||||
|
|
||||||
$fields->addFieldsToTab('Root.File', array(
|
$fields->addFieldsToTab('Root.File', array(
|
||||||
|
Loading…
Reference in New Issue
Block a user