Skip to content

Instantly share code, notes, and snippets.

@jasonaden
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save jasonaden/616d411c14ce7d34befe to your computer and use it in GitHub Desktop.

Select an option

Save jasonaden/616d411c14ce7d34befe to your computer and use it in GitHub Desktop.
angular.module('mc.inputs').constant 'FormData',
name: 'TestForm'
prompt: 'Test Form'
description: 'Test Form Description'
render: 'one-column'
items: [
type: 'group'
render: 'group'
items: [
{
type: 'field'
name: 'headingField1'
prompt: 'Heading Field 1'
description: 'Text about Heading Field 1'
type: 'boolean'
render: ['boolean', 'heading']}
{
type: 'group'
render: 'collapse-panel'
condition: 'field1 == true'
items: [
{
type: 'field'
name: 'dateField2'
prompt: 'Date Field 2'
type: 'date'
render: 'date'}
{
type: 'field'
name: 'commentsField3'
prompt: 'Comments Field 3'
type: 'text'
render: 'long-text'}
]}
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment