BlockGoogleCalendar Class
_controllers\_blocks\BlockGoogleCalendar.js:10
BlockGoogleCalendar is based on JSON base class component
Constructor
BlockGoogleCalendar
()
Object
Returns:
instantiated BlockGoogleCalendar 6e2919a1-47f0-4a4f-bd94-de7ecfbe604d
Item Index
Methods
- _clearList
- _getFileId
- _getToken
- _initSettingsPanel
- _listenCalChanged
- _listenDaysOffsetChange
- _listenRefreshSheetList
- _listenRelativeFixedMode
- _listenSchedEndTimeChange
- _listenSchedEndTimeChange
- _listenTokenChanged
- _loadBlockSpecificProps
- _loadSheetList
- _populate
- _populateDaysAfter
- _populateDaysBefore
- _populateMode
- _populateModeDateSelection
- _populateStartEndDates
- deleteBlock
- initialize
Methods
_clearList
()
Clear the list of docs
_getFileId
()
String
Get current fileID from msdb
Returns:
id
_getToken
()
String
Get current token from msdb
Returns:
token
_initSettingsPanel
()
Init the settings panel that's used by Block common props for JSON based components
_listenCalChanged
()
Listen dropdown selected / changed
_listenDaysOffsetChange
()
Listen days offset change as in days before and days after respectively
_listenRefreshSheetList
-
i_playerData
Load list of latest data from server
Parameters:
-
i_playerData
Number
Returns:
Unique clientId.
_listenRelativeFixedMode
-
_listenRelativeFixedMode
Listen to relative or fixed mode states for the component
Parameters:
-
_listenRelativeFixedMode
Number
_listenSchedEndTimeChange
()
Listen to changes in end date selection for calendar
_listenSchedEndTimeChange
()
Listen to changes in start date selection for calendar
_listenTokenChanged
()
Listen token updated
_loadBlockSpecificProps
()
Load block specific properties
_loadSheetList
()
Load latest docs from Google services
_populate
()
Populate UI
_populateDaysAfter
-
i_interval
Populate the UI of the days after
Parameters:
-
i_interval
Number
_populateDaysBefore
-
i_interval
Populate the UI of the days before
Parameters:
-
i_interval
Number
_populateMode
()
Populate the fixed / offset mode in switch slider
_populateModeDateSelection
-
i_mode
Populate the fixed / offset mode in the UX date controls
Parameters:
-
i_mode
String
_populateStartEndDates
()
Populate the start and end dates for Google calendar date range selection If first time date component is used, set startDate and endDate where startDate is relative to today and endDate for a week from now
deleteBlock
-
i_memoryOnly
Delete this block
Parameters:
-
i_memoryOnly
Booleanif true only remove from existance but not from msdb
initialize
()
Init sub class and super on base