Skip to content
Noodlewitt edited this page Nov 27, 2014 · 7 revisions

There's a number of field types. Each one has a field parameters column, where you can customise the field add in validation, add in a tooltip etc.:

text

{
    "tooltip":"",
    "max_number":1
}

upload

{
    "validation": {
      "mimes":"gif,jpeg,bmp,png",
      "size":"5120"
    },
    "tooltip": "",
    "count": 1
}

checkbox

{
    "values": {
      "checked": "1",
      "unchecked": "0"
    },
    "tooltip": ""
}

static

for printing static fields

textarea

Textarea boxes

dropdown (todo)

Values and labels for the options can be customised by adding values like this:

{
    "values": {
      "": "Please Select",
      "customise": "You need to cusomise the values from field_parameters"
    },
    "max_number":1,
    "tooltip": ""
}

TODO: we might need a way of populating the dropdown values from db values? ###datepicker uses plugin here: http://eternicode.github.io/bootstrap-datepicker/ - as such, options can go into the options object like this..

{
    "options":{
        "data-date-format": "dd/mm/yyyy",
        "data-date-today-button": "true"
    },
    "max_number":1,
    "tooltip": ""
}

###tinymce

This shows a tinymce editor so they can add in links, images etc as content. It's based off the tinymce plugin. Advanced options will eventually be in here too.

table

will be tabulated data for multiple fields

Clone this wiki locally