html

HTML field type

Example


items: [{
  type: 'html',
  value: [
    '<b>Kia Sportage</b><br>',
    '<img src="img/kia-sportage.png">'
  ].join("")
},{
...

Properties

cls

String

The CSS class that will be added to field.
It is used for custom styling field.


items: [{
  type: 'html',
  value: [
    '<b>Kia Sportage</b><br>',
    '<img src="img/kia-sportage.png">'
  ].join(""),
  cls: 'field-info'
},{
...
}]

events

Array

Set event handler to field.


...
items: [{
  type: 'html',
  value: [
    '<b>Kia Sportage</b><br>',
    '<img src="img/kia-sportage.png">'
  ].join(""),
  events: [{
    change: function(){
      
    }
  }]
},{
...

name

String

Name of field over which it is possible to get value of field.


...
items: [{
  type: 'html',
  name: 'info',
  value: [
    '<b>Kia Sportage</b><br>',
    '<img src="img/kia-sportage.png">'
  ].join("")
},{
...

type

String

Type of field (value - html).


{
  type: 'html',
  value: [
    '<b>Kia Sportage</b><br>',
    '<img src="img/kia-sportage.png">'
  ].join("")
}

value

Boolean

Value of field.


items: [{
  type: 'html',
  value: [
    '<b>Kia Sportage</b><br>',
    '<img src="img/kia-sportage.png">'
  ].join("")
...

Events

change

(field, value)

Value of field.


items: [{
  type: 'html',
  value: [
    '<b>Kia Sportage</b><br>',
    '<img src="img/kia-sportage.png">'
  ].join("")
  events: [{
    change: function(){
      
    },
    scope: {}//not required
  }]
...