DHTMLX Docs & Samples Explorer

button

Presents a standard button.

Attributes

  • className - (string) the user-defined css class for an item
  • inputLeft - (integer) sets the left absolute offset of input.Just position:“absolute” makes sense of the attribute
  • inputTop - (integer) sets the top absolute offset of input. Just position:“absolute” makes sense of the attribute
  • 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 button. As labels are not defined for button, just the value absolute has sense and is used for setting absolute input position
  • value - (string) the text label of button
  • width - (integer) the button's width
var formData = [
                {type: "label", label: "Protocols"},
                {type: "checkbox", name: "ssl", label: "Use SSL 3.0", checked:true},
		{type: "checkbox", name: "tls", label: "Use TLS 1.0", checked:true},
		{type: "button", name: "btn", value: "Save Changes", command: "save"}
];