Module: examsView

examsView

Extends

Members

mode :Object

Current widget mode
Type:
  • Object
Source:
Example
{
  subject: "avg",
  year: "yearSlice"
}

ModelConstructor

Exams (EGE) model class
Source:
See:

name :String

Exams template id (need for caching)
Type:
  • String
Source:

template :String

Raw handlebars template
Type:
  • String
Source:

title :String

Default exams 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()

Exams charts update & widget menu render
Source:

switchMode(subject, year)

Updates model state by selected mode
Parameters:
Name Type Argument Description
subject String | Object <optional>
Subject or {subject:"subject", year: 2000}
year String | Number <optional>
Year in xxxx format
Source: