This project is read-only.

Button Control

Button.png

Model

IButtonModel.png

type: string - type of the control. Use "button" to declare a Button control.

name?: string (optional) - name of the control. In javascript code, a child control is accessible from its parent control by name. In HTML, the value is put into the name attribute of the element.

cssClass?: string (optional) - custom CSS class that will be applied to the control's outer element.

isHidden?: boolean (optional) - allows to declare control as hidden.

text?: string (optional) - button text.

isDialogButton?: boolean (optional) - allows to configure button as a dialog button. Dialog buttons are shown in the bottom section of the window and have a special behavior.

dialogResult?: string (optional) - used in case isDialogButton is set to true. In this case, clicking the dialog button closes the window with the specified dialog result.

Example

{
	"name": "editButton",
	"type": "button",
	"text": "Edit"
}

Control

IButton.png

model: IControlModel - reference to the model.

id: string - control id. Returns value of the id attribute of the element.

type: string - type of the control.

name: string - name of the control.

parent: IControl - reference to the parent control.

window: IWindow - reference to the window that owns the control.

getElement(): JQuery - returns the HTML element that represents the control.

Button Control Example


.

Last edited Nov 20, 2013 at 11:45 AM by artemkv, version 8

Comments

No comments yet.