Class: PortEditorSettingsView

PortEditorSettingsView()

Members

className :string

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

editorView :PortalEditorView

A reference to the PortalEditorView
Type:
Source:

events :Object

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

id

The id attribute of the view element
Source:

model :Portal

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

sectionType :string

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

template

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

type :string

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

uniqueSectionLabel :string

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

Methods

cancelChangeLabel()

Cancels changing the portal label
Source:

changeLabel()

Makes the portal label editable whenever the `change url` button is clicked
Source:

initialize(options)

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

okChangeLabel()

Shows the portal label as saved
Source:

removeLabelValidation(e)

Removes help text and css formatting that indicates error or success after label/URL validation.
Parameters:
Name Type Description
e Event The keyup or focusout event
Source:

render()

Renders this view
Source:

showLabelValidation(e)

Initiates validatation of the newly inputed label (a URL component). Listens for a response from the model, then displays help text based on whether the new label was valid or not.
Parameters:
Name Type Description
e Event The focusout event
Source:

showLabelValidationError(e)

showLabelValidationError - add css formatting and hide OK button when there are errors in label validation.
Parameters:
Name Type Description
e Event The keyup or focusout event
Source: