Skip to content
spAnser edited this page Apr 14, 2016 · 2 revisions
{
    "fields": [{
        "group": "Default",
        "name": "Table",
        "handle": "table", // This line is optional
        "instructions": "This is not a required field.",
        "type": "Table",
        // typesettings & everything inside is optional
        "typesettings": {
            "columns": {
                "col1": {
                    "heading": "Column 1",
                    "handle": "col1",
                    "width": "85%",
                    "type": "singleline" // or "multiline" or "number" or "checkbox"
                },
                "col2": {
                    "heading": "Column 2",
                    "handle": "col2",
                    "width": "10%",
                    "type": "number" // or "multiline" or "number" or "checkbox"
                },
                "col3": {
                    "heading": "Column 3",
                    "handle": "col3",
                    "width": "10%",
                    "type": "checkbox" // or "multiline" or "number" or "checkbox"
                }
            },
            "defaults": {
                "row1": {
                    "col1": "row1-col1",
                    "col2": 10,
                    "col3": true
                },
                "row2": {
                    "col1": "row2-col1",
                    "col2": 5,
                    "col3": false
                }
            }
        }
    }]
}
Clone this wiki locally