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()
|
public function getCMSFields()
|
||||||
{
|
{
|
||||||
$fields = FieldList::create(
|
$fields = FieldList::create(
|
||||||
TabSet::create("Root.Main",
|
TabSet::create("Root",
|
||||||
CheckboxSetField::create('IsActive','Is active?'),
|
Tab::create("Main",
|
||||||
TextField::create('Title'),
|
CheckboxSetField::create('IsActive','Is active?'),
|
||||||
TextareaField::create('Content')
|
TextField::create('Title'),
|
||||||
->setRows(5)
|
TextareaField::create('Content')
|
||||||
|
->setRows(5)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user