-
Notifications
You must be signed in to change notification settings - Fork 2
Field Types
Noodlewitt edited this page Aug 26, 2015
·
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.:
{
"tooltip":"",
"max_number":1
}
{
"validation": {
"mimes":"gif,jpeg,bmp,png",
"size":"5120"
},
"tooltip": "",
"count": 1
}
{
"values": {
"checked": "1",
"unchecked": "0"
},
"tooltip": ""
}
for printing static fields
Textarea boxes
{
"values": {
"tag1": "Some default tags in here",
"tag2": "some other default tag"
},
"max_number":1,
"tooltip": "",
"multiple": true,
"delimeter":',',
"search":true,
"maxTags":99,
"placeholder":"Some placeholder"
}
{
"values": {
"": "Please Select",
"customise": "You need to cusomise the values from field_parameters"
},
"max_number":1,
"tooltip": "",
"multiple": true,
"search":true,
"delimeter":',',
"maxTags":99,
"placeholder":"Some placeholder"
}
###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.
###colour
A colour picker that sets a hex colour value into the cms.
will be tabulated data for multiple fields