Skip to content

Instantly share code, notes, and snippets.

@laurentpetit
Last active January 3, 2016 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laurentpetit/8434173 to your computer and use it in GitHub Desktop.
Save laurentpetit/8434173 to your computer and use it in GitHub Desktop.
; constraint inside componenents
{:type :composite
:children [ {:type :label
:id :project-label
:text "Project name:"}
{:type :text
:id :project-name
:text ""
:form-data {:left {:control :project-label}}}
]}
; versus constraint declared by the owning composite
{:type :composite
:children [ {:type :label
:text "Project name:"
:id :project-label}
{:type :text
:text ""}
]
:children-layouts [ :project-name {:form-data {:left {:control :project-label}}} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment