-
Functions
33
- getSelectedPeriod
- addItem
- addSection
- clearTimeouts
- daysInMonth
- daysInWeek
- getCurrentPeriod
- getItem
- getItems
- getPeriods
- getSections
- getStart
- refresh
- setAllocationLabelType
- setCellException
- setCustomPeriod
- setFilter
- setPeriod
- setStartAndEnd
- setStartDate
- blur
- focus
- get
- getId
- getValue
- hide
- isEnabled
- isHidden
- set
- setEnabled
- setStyle
- setValue
- show
addItem ( name: String , start: Object , end: Object , section: Object )
Adds an item to the scheduler.
Parameters
Name | Type | Description |
---|---|---|
name | String | The name of the item. |
start | Object | Start time of the item. |
end | Object | End time of the item. |
section | Object | The section that the item should belong to. |
addSection ( name: String )
Adds a section to the scheduler
Parameters
Name | Type | Description |
---|---|---|
name | String | The name of the new section. |
daysInMonth ( ) →{ Array }
Returns an array of month days.
Returns
An array of {val, label} hashes representing the month days.
daysInWeek ( ) →{ Array }
Returns an array of weekdays.
Returns
An array of {val, label} hashes representing the weekdays.
getCurrentPeriod ( ) →{ Object }
Returns the scheduler's currently selected period.
Returns
The current period
getItem ( id: String ) →{ Object }
Returns the item with the specified ID.
Parameters
Name | Type | Description |
---|---|---|
id | String | The id of the item. |
Returns
The item with the specified ID.
getPeriods ( ) →{ Array }
Returns an array of all of the scheduler's periods.
Returns
An array containing all of the scheduler's periods.
getSections ( ) →{ Array }
Returns an array of all of the scheduler's sections.
Returns
An array holding all of the scheduler's sections.
setAllocationLabelType ( type: String , preventUpdate: Boolean )
Sets the type of the allocation label.
Parameters
Name | Type | Description |
---|---|---|
type | String | |
preventUpdate | Boolean |
setCellException ( start: Object , end: Object , preventUpdate: Boolean )
Sets the cell exception.
Parameters
Name | Type | Description |
---|---|---|
start | Object | Start time |
end | Object | End time |
preventUpdate | Boolean |
setCustomPeriod ( period: Object , skipEvent: Boolean , keepStart: Boolean )
Creates and sets a custom period.
Parameters
Name | Type | Description |
---|---|---|
period | Object | The period to create. |
skipEvent | Boolean | |
keepStart | Boolean |
setFilter ( filter: Object )
Sets a filter. The filter is used to filter displayed sections.
Parameters
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
filter | Object | An object containing the fields to use for the filter.Properties
|
setPeriod ( period: Object , skipEvent: Boolean , keepStart: Boolean )
Sets the scheduler's selected period
Parameters
Name | Type | Description |
---|---|---|
period | Object | The new period. |
skipEvent | Boolean | |
keepStart | Boolean |
setStartAndEnd ( start: Date, end: Date)
Sets the displayed start and end dates.
Parameters
Name | Type | Description |
---|---|---|
start | Date | The start date. |
end | Date | The end date. |
setStartDate ( start: Date)
Sets the start date of the scheduler
Parameters
Name | Type | Description |
---|---|---|
start | Date | The new start date. |
get ( name: String ) →{ Object }
Gets the value of the specified property.
Parameters
Name | Type | Description |
---|---|---|
name | String | The name of the property. |
Returns
The property's value.
isEnabled ( ) →{ Boolean }
Returns true if the widget is enabled.
Returns
True if enabled, otherwise false.
isHidden ( ) →{ Boolean }
Returns true if the widget is hidden.
Returns
True if hidden, otherwise false.
set ( name: String , value: Object )
Sets the value of the specified property.
Parameters
Name | Type | Description |
---|---|---|
name | String | The name of the property. |
value | Object | The new value. |
setEnabled ( Enabled: Boolean )
Enables/disables the widget.
Parameters
Name | Type | Description |
---|---|---|
Enabled | Boolean | True to enable the widget, false to disable. |
setStyle ( Object: Object )
Set the widget-style
Parameters
Name | Type | Description |
---|---|---|
Object | Object | properties |