APIs

Show:

BlockGoogleCalendar is based on JSON base class component

Constructor

BlockGoogleCalendar

() Object

Returns:

Object:

instantiated BlockGoogleCalendar 6e2919a1-47f0-4a4f-bd94-de7ecfbe604d

Methods

_clearList

()

Clear the list of docs

_getFileId

() String

Get current fileID from msdb

Returns:

String:

id

_getToken

() String

Get current token from msdb

Returns:

String:

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
)
Number

Load list of latest data from server

Parameters:

  • i_playerData Number

Returns:

Number:

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 Boolean

    if true only remove from existance but not from msdb

initialize

()

Init sub class and super on base