-
Notifications
You must be signed in to change notification settings - Fork 7
Box field types
Edward edited this page Dec 2, 2013
·
2 revisions
Besides the typical inputs like title, titleurl, prolog, etc boxes can have dynamic fields. Grid can handle the following input types:
- "number" => input[number] - "html" => ckeditor - "textarea" => textarea - "text" => input[text] - "checkbox" => input[checkbox] content value can be: 1(checked) || 0 (unchecked) - "info": "text that describes the function" - "select" = select <option value="{key}">{text}</option> selections: { [ {key: "", text:""}, {key: "", text:""}, ... ] } - autocomplete => input with autocomplete - autocomplete with links - an list of field types listdata:[ { key:"value", ..., sublist:[...] }, {...} ] - "wp-mediaselect": Media in Wordpress
if type is not supported JavaScript will print a console text with the type that was tried to build