Class: PortalSectionView

PortalSectionView()

The PortalSectionView is a generic view to render portal sections, with a default rendering of a MarkdownView

Constructor

new PortalSectionView()

Source:

Extends

  • Backbone.View

Members

active :boolean

Specifies if this section is active or not
Type:
  • boolean
Source:

className :string

The HTML classes to use for this view's element
Type:
  • string
Source:

model :PortalSection

The PortalSectionModel that is being edited
Type:
  • PortalSection
Source:

sectionName :string

The display name for this Section
Type:
  • string
Source:

tagName :string

The HTML tag name for this view's element
Type:
  • string
Source:

template :UnderscoreTemplate

Type:
  • UnderscoreTemplate
Source:

type :string

The type of View this is
Type:
  • string
Source:

uniqueSectionLabel :string

The unique label for this Section. It most likely matches the label on the model, but may include a number after if more than one section has the same name.
Type:
  • string
Source:

Methods

getName(optionsopt) → {string}

Gets the name of this section and returns it
Parameters:
Name Type Attributes Description
options Object <optional>
Optional options for the name that is returned
Properties:
Name Type Description
options.linkFriendly Boolean If true, the name will be stripped of special characters
Source:
Returns:
The name for this section
Type
string

initialize(options)

Parameters:
Name Type Description
options Object A literal object with options to pass to the view
Properties:
Name Type Description
options.model PortalSection The PortalSection rendered in this view
options.sectionName string The name of the portal section
Source:

postMarkdownRender()

When the portal section markdown is rendered in a MarkdownView, format the resulting HTML as needed for this view
Source:

postRender()

This funciton is called after this view has fully rendered and is visible on the webpage
Source:

render()

Renders the view
Source: