mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fixes getCMSFields TabSet example
Current example results in: "[Emergency] Uncaught InvalidArgumentException: TabSet can only contain instances of other Tab or Tabsets"
This commit is contained in:
parent
64688dbc10
commit
b4a3cc700a
@ -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)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user