Created
January 28, 2017 23:34
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$structure = [ | |
'type' => 'Form', | |
'id' => 'test', | |
'label' => 'Some form', | |
'children' => [ | |
'default' => [ | |
'type' => 'Sheet', | |
'label' => 'Sheet label', | |
'description' => 'Sheet description', | |
'shortDescription' => 'Short description', | |
'children' => [ | |
'test' => [ | |
'type' => 'Input', | |
'label' => 'Test field', | |
'default' => 'default value', | |
'placeholder' => 'Placeholder text', | |
'wizards' => [ | |
'link' => [ | |
'type' => 'Link' | |
] | |
] | |
], | |
'test' => [ | |
'type' => 'Section', | |
'label' => 'My Section', | |
'children' => [ | |
[ | |
'type' => 'Object', | |
'label' => 'My Object Type', | |
'children' => [ | |
'type' => 'Input', | |
'label' => 'Test field', | |
'default' => 'default value', | |
'placeholder' => 'Placeholder text', | |
'wizards' => [ | |
'link' => [ | |
'type' => 'Link' | |
] | |
] | |
] | |
] | |
] | |
] | |
] | |
] | |
] | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment