Skip to content

Component UI engine

donvadicastro edited this page Oct 1, 2015 · 1 revision

Component UI engine is used to render appropriate markup based on meta declaration or platform to be used. UI engine may requires additional properties in component declaration to be used to render component correct. This properties should be places in "ui" object at the root of component structure.

Component UI properties:

  • label - form field label as short control puprose description
  • placeholder - value to be showed in empty controls, like 'enter name...' or 'select...'
  • tooltip - control tooltip
  • layout - label & editor placement variety

Example of component declaration:

{
  binding: 'country.name',
  ui: { label: 'Contry name' }
}

where "label" ui property can be used to create common form control with label to describe input beyond purpose.