Merge pull request #9566 from purplespider/patch-3

Fixes getCMSFields TabSet example
This commit is contained in:
Robbie Averill 2020-06-29 09:27:17 -07:00 committed by GitHub
commit 82f096496e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -44,11 +44,13 @@ To fully customise your form fields, start with an empty FieldList.
public function getCMSFields()
{
$fields = FieldList::create(
TabSet::create("Root.Main",
CheckboxSetField::create('IsActive','Is active?'),
TextField::create('Title'),
TextareaField::create('Content')
->setRows(5)
TabSet::create("Root",
Tab::create("Main",
CheckboxSetField::create('IsActive','Is active?'),
TextField::create('Title'),
TextareaField::create('Content')
->setRows(5)
)
)
);