DHTMLX Docs & Samples Explorer

Label

Presents a text label.

Attributes

  • className - (string) the user-defined css class for item
  • disabled - (boolean) disables/enables the item
  • hidden - (boolean) hides/shows the item. The default value - false (the item is shown)
  • label - (string) the text label of item
  • labelHeight - (integer or auto) the height of label. The default value is auto
  • labelLeft - (integer) sets the left absolute offset of label. Just position:“absolute” makes sense of the attribute
  • labelTop - (integer) sets the top absolute offset of label. Just position:“absolute” makes sense of the attribute
  • labelWidth - (integer or auto) the width of label. The default value is auto
  • name - (string) the identification name. Used for referring to item
  • offsetLeft - (integer) sets the left relative offset of item
  • offsetTop - (integer) sets the top relative offset of item
  • position - (label-left, label-right, label-top or absolute) defines the position of label relative to input. As input is not defined for label, just value absolute has sense and is used for setting absolute label position
  • userdata - (object) sets some user data for the input (key:value pairs)
var formData = [
		{type: "label", label: "Caret"},
		{type: "radio", name: "caret", label: "Blinking", checked: true, position:"label-right"},
		{type: "radio", name: "caret", label: "Block", position:"label-right"},
		{type: "radio", name: "caret", label: "Thick", position:"label-right"}
];