Root static functions of Schedule Component
Method to add no of days in date object
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
noOfDays | number |
Accepts the number of days count |
Returns Date
Method to add no of months in date object
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
noOfMonths | number |
Accepts the number of month count |
Returns Date
Method to add no of years in date object
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
noOfYears | number |
Accepts the number of month count |
Returns Date
Method to capitalize the first word in string
Parameter | Type | Description |
---|---|---|
inputString | string |
Accepts the string value |
type | string |
Accepts the string type |
Returns string
Method to find the index from data collection
Parameter | Type | Description |
---|---|---|
data | Record[] |
Accepts the data as object |
field | string |
Accepts the field name |
value | string |
Accepts the value name |
event (optional) | Record |
Accepts the data as object |
resourceCollection (optional) | Record[] |
Accepts the data collections |
Returns number
Method to get first date of month
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
Returns Date
Method to get date count between two dates
Parameter | Type | Description |
---|---|---|
startDate | Date |
Accepts the date object |
endDate | Date |
Accepts the date object |
Returns number
Method to get date object from date string
Parameter | Type | Description |
---|---|---|
date | string |
Accepts the date string |
Returns Date
Method to get milliseconds from date object
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
Returns number
Method to get days count between two dates
Parameter | Type | Description |
---|---|---|
startDate | number |
Accepts the date object |
endDate | number |
Accepts the date object |
Returns number
Method to get height from element
Parameter | Type | Description |
---|---|---|
container | Element |
Accepts the DOM element |
elementClass | string |
Accepts the element class |
Returns number
Method to get width from element
Parameter | Type | Description |
---|---|---|
container | Element |
Accepts the DOM element |
elementClass | string |
Accepts the element class |
Returns number
Method to get month last date
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
Returns number
Method to get element outer height
Parameter | Type | Description |
---|---|---|
element | HTMLElement |
Accepts the DOM element |
Returns number
Method to get start and end hours
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
startHour | Date |
Accepts the start hour date object |
endHour | Date |
Accepts the end hour date object |
Returns Record
Method to get translateX value
Parameter | Type | Description |
---|---|---|
element | HTMLElement | Element |
Accepts the DOM element |
Returns number
Method to get translateY value
Parameter | Type | Description |
---|---|---|
element | HTMLElement | Element |
Accepts the DOM element |
Returns number
Method to get UTC time value from date
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date |
Returns number
Method to get week first date
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
firstDayOfWeek | number |
Accepts the first day of week number |
Returns Date
Method to get week last date
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
firstDayOfWeek | number |
Accepts the first day of week number |
Returns Date
Method to get week middle date
Parameter | Type | Description |
---|---|---|
weekFirst | Date |
Accepts the week first date object |
weekLast | Date |
Accepts the week last date object |
Returns Date
Method to get week number
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
Returns number
Method to check DST is present or not in date object
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
Returns boolean
Method to check the IPad device
Returns boolean
Method to check the device
Returns boolean
Method to get last date of month
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
Returns Date
Method to remove child elements
Parameter | Type | Description |
---|---|---|
element | HTMLElement | Element |
Accepts the DOM element |
Returns void
Method the reset hours in date object
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
Returns Date
Method to set time to date object
Parameter | Type | Description |
---|---|---|
date | Date |
Accepts the date object |
time | number |
Accepts the milliseconds |
Returns Date