new PortEditorSettingsView()
- Source:
Members
className :string
The HTML classes to use for this view's element
Type:
- Source:
A reference to the PortalEditorView
Type:
- Source:
events :Object
The events this view will listen to and the associated function to call.
Type:
- Source:
id
The id attribute of the view element
- Source:
model :Portal
The PortalModel that is being edited
Type:
- Source:
sectionType :string
The type of section view this is
Type:
- 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:
- Source:
uniqueSectionLabel :string
The display name for this Section
Type:
- 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: