APIs

Show:

Campaign selector, class extends Backbone > View and used to select a campaign or create a new one

Constructor

CampaignSelectorView

() Object

Returns:

Object:

instantiated CampaignSelectorView

Methods

_autoStartWizard

()

Auto kick start the Wizard, but only if app WxH is sufficient

_checkFirstTimeUser

()

For first time users launch wizard

_enableComponent

()

Enable this component, i.e.: allow clicking of campaign list selection and set the storage firstwizard so it no longer auto pops up

_listenAddRemoveCampaign

()

Wire the UI including new campaign creation and delete existing campaign

_listenCampaignModeSelect

()

Listen to changes in campaign playback mode

_listenInputChange

()

Wire changing of campaign name through campaign properties

Returns:

none

_listenLoadCampaignList

()

Listen for when to refresh the campaign list (new campaign was created)

Returns:

none

_listenOpenProps

()

Listen for user trigger on campaign selection and populate the properties panel

Returns:

none

_listenSelectCampaign

()

Listen select campaign

Returns:

none

_listenWizardStart

()

Listen to kick off of wizard button

_loadCampaignList

()

Populate the LI with all available campaigns from msdb

Returns:

none

_populateCampaignMode();

()

Load the campaign's play mode (scheduler /sequencer)

getSelectedCampaign

() Number

Get selected campaign id

Returns:

Number:

campaign_id

initialize

()

Constructor

removeCampaign

()

Remove an entire campaign including its timelines, channels, blocks, template, board etc

Returns:

none

setSelectedCampaign

()

Set selected campaign id

Events

CAMPAIGN_SELECTED

final static

Custom event fired when a going back to campaign is selected

Event Payload:

  • caller This
  • context Self

    caller

  • UNKNOWN Event

LOAD_CAMPAIGN_LIST

final static

Custom event fired when we need to refresh the campaign list

Event Payload:

  • caller This
  • context Self

    caller

  • rss Event

    link