Layout class (Calendar)

Layout(oCalendar, date, nLayoutView)

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
Layout

Methods

addNP()

The addNP() method adds next/prev buttons to the current layout.
Since:
  • 3.2
addNP

build()

The build() method constructs the calendar's layout, arranging all components of the control.
build

(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
getObject

(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
setObject