CampaignSelectorView Class
_views\CampaignSelectorView.js:1
Campaign selector, class extends Backbone > View and used to select a campaign or create a new one
Constructor
CampaignSelectorView
()
Object
Returns:
instantiated CampaignSelectorView
Item Index
Methods
- _autoStartWizard
- _checkFirstTimeUser
- _enableComponent
- _listenAddRemoveCampaign
- _listenCampaignModeSelect
- _listenInputChange
- _listenLoadCampaignList
- _listenOpenProps
- _listenSelectCampaign
- _listenWizardStart
- _loadCampaignList
- _populateCampaignMode();
- getSelectedCampaign
- initialize
- removeCampaign
- setSelectedCampaign
Events
- CAMPAIGN_SELECTED static
- LOAD_CAMPAIGN_LIST static
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:
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
Selfcaller
-
UNKNOWN
Event
LOAD_CAMPAIGN_LIST
final
static
Custom event fired when we need to refresh the campaign list
Event Payload:
-
caller
This -
context
Selfcaller
-
rss
Eventlink