groupSpec

Represents an independent group of panels in the interface. When added, the matching views (groupContainerView) will be instanciated

class GroupSpecModel()

Group specifications model

Extends

app.models.base.BaseModel()

GroupSpecModel.addPanel(options, position)

Add panel specs to model

Arguments
  • options (Object) –

  • position (Int) –

GroupSpecModel.defaults()

Set panelSpec and groupState in model attributes

Return type

Object

GroupSpecModel.ensurePanelsAt(list_of_options, position)

Find or create panels at a given position Note that despite the name, this function does NOT check that if the panel exists, it exists at the right position. It ONLY check that the panel exists

Arguments
  • list_of_options (Array) – PanelType or array of PanelType

  • position (Int) – int order of first panel listed in sequence of panels

GroupSpecModel.findNavigationPanelSpec()

Returns the part of the groupSpec that contains the navigation panel (if any). That is, any panel in the first position that has the capacity to alter the global group state

Return type

Object

GroupSpecModel.findNavigationSidebarPanelSpec()

Returns the part of the groupSpec that contains the simple interface navigation panel (if any)

Return type

Object

GroupSpecModel.getPanelSpecByType(panelSpecType)

Returns panel sepcs by type

Arguments
  • panelSpecType (Object) –

GroupSpecModel.parse(model)
Arguments
  • model (Object) –

Return type

Object

GroupSpecModel.removePanelByModel(aPanelSpec)

Remove panel specs from model

Arguments
  • aPanelSpec (aPanelSpec) –

GroupSpecModel.removePanels()

Remove panel specs from model

GroupSpecModel.validate()

Validate the model attributes

class GroupSpecs()

Group specifications collection

Extends

app.models.base.BaseCollection()

GroupSpecs.validate()

Validate the model attributes