Edit this page

Code Field

Stores a String in the model. Displayed with CodeMirror in the Admin UI.


{ type: Types.Code, height: 180, language: json }


height Number The height of the field (in pixels). Default: 180

language String The language in the code field.

Supported languages: c++, objectivec, css, asp, c, vb, xml, php, html, ini, js, java, coffee, lisp, perl, python, sql, json, less, sass, sh, ruby, jsp, tpl, jade


Inherits from Text

  • addFilterToQuery
  • validateInput
  • validateRequiredInput


Uses the same logic and filter UI as the Text field type.