new Layout(oCalendar, date, nLayoutView)
Creates a Layout object that organizes the visible parts of the calendar.
Parameters:
Name | Type | Description |
---|---|---|
oCalendar |
object | Specifies an object of Calendar type |
date |
Date | Indicates a date that specifies the date being shown in the layout |
nLayoutView |
LayoutViewEnum | Specifies the type of layout the Layout is for |
Methods
addNP()
The addNP() method adds next/prev buttons to the current layout.
- Since:
- 3.2
build()
The build() method constructs the calendar's layout, arranging all components of the control.
(static) getObject(htObject) → {object}
The getObject() method decodes the hit-test codes into an object of {type,date} type
Parameters:
Name | Type | Description |
---|---|---|
htObject |
string | Specifies a string value that's a result of a Layout.setObject call (encoded-object) |
Returns:
Returns an object of {type,date} type that specifies the decoded object
- Type
- object
(static) setObject(type, date) → {string}
The setObject() method encodes the type and date to uniquely identify an object into the month layout
Parameters:
Name | Type | Description |
---|---|---|
type |
string | Indicates the type of the object the date is displaying |
date |
Date | A date associated with the object |
Returns:
(htObject) Returns a string that encodes the type and date of the object to uniquely identify into the calendar
- Type
- string