new PortEditorSettingsView()
Members
className :string
The HTML classes to use for this view's element
Type:
- string
editorView :PortalEditorView
A reference to the PortalEditorView
Type:
events :Object
The events this view will listen to and the associated function to call.
Type:
- Object
id
The id attribute of the view element
model :Portal
The PortalModel that is being edited
Type:
- Portal
sectionType :string
The type of section view this is
Type:
- string
template
References to templates for this view. HTML files are converted to Underscore.js templates
type :string
The type of View this is
Type:
- string
uniqueSectionLabel :string
The display name for this Section
Type:
- string
Methods
cancelChangeLabel()
Cancels changing the portal label
changeLabel()
Makes the portal label editable whenever the `change url` button is clicked
initialize(options)
Creates a new PortEditorSettingsView
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | A literal object with options to pass to the view |
okChangeLabel()
Shows the portal label as saved
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 |
render()
Renders this view
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 |
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 |