Constructor
new PortalSectionView()
- Source:
Extends
Members
active :boolean
Specifies if this section is active or not
Type:
- Source:
className :string
The HTML classes to use for this view's element
Type:
- Source:
model :PortalSection
The PortalSectionModel that is being edited
Type:
- Source:
sectionName :string
The display name for this Section
Type:
- Source:
tagName :string
The HTML tag name for this view's element
Type:
- Source:
template :UnderscoreTemplate
Type:
- Source:
type :string
The type of View this is
Type:
- 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:
- 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: