Extends
- Backbone.View
Members
active :boolean
Specifies if this section is active or not
Type:
- boolean
className :string
The HTML classes to use for this view's element
Type:
- string
model :PortalSection
The PortalSectionModel that is being edited
Type:
- PortalSection
sectionName :string
The display name for this Section
Type:
- string
tagName :string
The HTML tag name for this view's element
Type:
- string
template :UnderscoreTemplate
Type:
- UnderscoreTemplate
type :string
The type of View this is
Type:
- string
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
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 |
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 |
postMarkdownRender()
When the portal section markdown is rendered in a MarkdownView, format the
resulting HTML as needed for this view
postRender()
This funciton is called after this view has fully rendered and is
visible on the webpage
render()
Renders the view