Module: populationView

populationView

new require("populationView")() → {function}

Population informer
Source:
See:
Requires:
Returns:
Backbone.View constructor
Type
function
Source:

Extends

Members

mode :object

Current widget mode
Type:
  • object
Source:

ModelConstructor

Population model class
Source:
See:

name :String

Template id
Type:
  • String
Source:

template :String

Raw handlebars template
Type:
  • String
Source:

title :String

Default widget title
Type:
  • String
Source:

Methods

afterRender()

Menu event bindings
Source:
See:

getRelatedView()

Gets related view by widget mode
Source:

onMenuClick()

Primary and secondary menu click handler. Switches widget mode by click
Source:

renderData()

Chart update & widget menu render
Source:

switchMode(year)

Updates model state by selected mode
Parameters:
Name Type Argument Description
year String | Number <optional>
Year in xxxx format
Source: