APIs

Show:

Add block view is a UI component which allows selection and insertion of a new component (i.e. QR / RSS ...) or a resource to be added to the currently selected timeline_channel. We also skip displaying certain components / scenes dependon

Constructor

AddBlockView

() Object

Returns:

Object:

instantiated AddBlockView

Methods

_buildBSAccordion

()

Hook onto bootstrap accordion so user can select new block to add

_checkAllowedComponent

(
  • i_componentID
)
Number

Check if component is allowed under enterprise / prime membership Note that if running under Hybrid or Private server default is to always allow all components

Parameters:

  • i_componentID Number

Returns:

Number:

0 = hide, 1 = show, 2 = upgradable

_goBack

()

Go back after selection

_listenSelection

()

Listen to list selection of components / resources / scenes

_render

()

Build lists of components, resources and scenes (respectively showing what's needed per placement mode) Once an LI is selected proper event fired to announce block is added.

Returns:

none

deSelectView

()

Deselect current view which will animate page unloading

initialize

()

Constructor

selectView

()

Select current view which will animate page loading

setPlacement

(
  • i_playerData
)

Allow us to control the current placement of the module so the behaviour can be according to where the instance resides (i.e.: current launch is from Block collection list of from Channel list for example)

Parameters:

  • i_playerData Number

setSceneMime

(
  • i_mimeType
)

Allow us to control the view depending upon the current mimetype of the scene that launched this instance. Keep in mind that m_sceneMime is only set for one duration of _render. Once rendered the list, we reset the m_sceneMime back to undefined so

Parameters:

  • i_mimeType String

Events

ADD_NEW_BLOCK_CHANNEL

final static

Custom event fired when a new block is added to timeline_channel

Event Payload:

  • caller This
  • context Self

    caller

  • player_code Event

    which represents a specific code assigned for each block type

ADD_NEW_BLOCK_SCENE

final static

Custom event fired when a new block is added to scene

Event Payload:

  • caller This
  • context Self

    caller

  • player_code Event

    which represents a specific code assigned for each block type

ADD_NEW_BLOCK_SCENE

final static

Custom event fired when a new block is added to scene

Event Payload:

  • caller This
  • context Self

    caller

  • player_code Event

    which represents a specific code assigned for each block type