Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added inline view #15

Merged
merged 1 commit into from
Jan 17, 2013

Conversation

JocelynDelalande
Copy link
Contributor

Following my reflections about a table layout (see #13 ), I ended on an inline view, that allows me to stack an ArrayField of ObjectField with one ObjectField per line.

For example, with the schema

title: "Liste des Jours fériés",
type: "array",
items: {
    type: "object",
    properties: {
        enabled: {title: "Actif", type: "boolean"},
        name   : {title: "Dénomination", required: true},
        date   : {title: "Date", type: "object", required: true
                  properties: {
                      dayOfMonth: {title: 'Jour',  "enum": DAYS_OF_MONTH},
                      month: {title: 'Mois', "enum": MONTHS,}
                  }
             },
        computed: {title: "Computed", type: "string", default: false},
    },
},

and the option

inline: true

I get something like :
inlined-object

uzquiano added a commit that referenced this pull request Jan 17, 2013
@uzquiano uzquiano merged commit 4f5ff91 into gitana:master Jan 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants