Class: PortEditorDataView

PortEditorDataView()

Extends

Members

className :string

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

editCollectionViewContainer :string

A jQuery selector for the element that the EditCollectionView should be inserted into
Type:
  • string
Source:

editFilterGroupsViewContainer :string

A jQuery selector for the element that the FilterGroupsView editor should be inserted into
Type:
  • string
Since:
  • 2.17.0
Source:

editorView :PortalEditorView

A reference to the parent editor view
Type:
Overrides:
Source:

events :Object

The events this view will listen to and the associated function to call.
Type:
  • Object
Overrides:
Source:

id

The id attribute of the view element
Source:

model :Portal

The PortalModel that is being edited
Type:
  • Portal
Overrides:
Source:

sectionType :string

The type of section view this is
Type:
  • string
Source:

sectionsOptions :Array.<PorttEditorSectionView#sectionOption>

Information about each of the section types available to a user. Note that the key (e.g. "freeform") is used to ID the UI selection element.
Type:
Inherited From:
Source:

sectionsOptionsContainer :string

A jQuery selector for the element that the section option buttons should be inserted into
Type:
  • string
Inherited From:
Source:

tagName :string

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

template

References to templates for this view. HTML files are converted to Underscore.js templates
Overrides:
Source:

type :string

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

uniqueSectionLabel :string

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

Methods

addNewSection(e)

Gets the section type to add, and triggers an event so the rest of the app will add a new section
Parameters:
Name Type Description
e Event The element that was clicked that represents the section option
Inherited From:
Source:

disableSectionOption(sectionType)

Adds styling and content to a section option element to indicate that the user already added the maximum allowable number of this section type (i.e. it's disabled).
Parameters:
Name Type Description
sectionType string The section name. This is the same string used as the key in sectionsOptions (e.g. "freeform").
Inherited From:
Source:

enableSectionOption(sectionType)

Adds styling and content to a section option element to indicate that the user is able to add more of this section type (i.e. it's not disabled).
Parameters:
Name Type Description
sectionType string The section name. This is the same string used as the key in sectionsOptions (e.g. "freeform").
Inherited From:
Source:

initialize(options)

Creates a new PortEditorDataView
Parameters:
Name Type Description
options Object A literal object with options to pass to the view
Overrides:
Source:

openInNewTab(e)

Opens a link in a new tab even when the target=_blank attribute isn't set. Link is assumed to be relative; the base url is prepended to make it absolute.
Parameters:
Name Type Description
e Event The click event on an HTML achor element
Source:

render()

Renders this view
Overrides:
Source:

toggleDisableSectionOption(sectionType)

Checks whether a section type is available to a user to add, then calls functions that change content and styling to indicate the availability to the user.
Parameters:
Name Type Description
sectionType string The section name. This is the same string used as the key in sectionsOptions (e.g. "freeform").
Inherited From:
Source: