Pager Control

Pager.png

Model

IPagerModel.png

type: string - type of the control. Use "textbox" to declare a TextBox 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.

bindsTo?: string (optional) - path of the property that the control will be databound to.

pageNoProperty?: string (optional) - name of the property that has a number of the current page. The property should be defined on the object that bindsTo property points to. Default value is "pageNo".

pagesTotalProperty?: string (optional) - name of the property that has a total number of pages. The property should be defined on the object that bindsTo property points to. Default value is "pagesTotal".

Example

{
	"name": "pager",
	"type": "pager",
	"bindsTo": "pagerInfo"
}

Control

IPager.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.

bindingContext: any - reference to the object that the control is bound to.

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

bind(dataObject: any): void - binds the control to the data model.

Pager Control Example


.

Last edited Nov 21, 2013 at 8:12 AM by artemkv, version 3

Comments

No comments yet.