new PortEditorLogosView()
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
model :Portal
The PortalModel that is being edited
Type:
- Portal
tagName :string
The HTML tag name to use for this view's element
Type:
- string
type :string
The type of View this is
Type:
- string
Methods
handleNewInput(eventOrView)
handleNewInput - Called when a user enters any input into a new ImageEdit
view. It removes the "new" class, shows the "remove" button, and adds a new
ImageEdit view with a blank PortalImage model.
Parameters:
Name | Type | Description |
---|---|---|
eventOrView |
object | either the keyup event when user enters text into an imageEdit input, OR the imageEdit view which contains the imageUploader where a user just uploaded an image. |
handleRemove()
This function is called when a logo is removed. The logo removal itself is done
by the PortEditorImageView. This function performs additional functionality that
should happen after the removal.
initialize(options)
Creates a new PortEditorLogosView
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | A literal object with options to pass to the view |
Properties:
Name | Type | Description |
---|---|---|
options.model |
Portal | The Portal whose logos are rendered in this view |
options.editorView |
PortalEditorView | Gets set as PortalEditorLogosView.editorView |
render()
Renders this view
renderAckLogoInput(portalImage)
renderAckLogoInput - Adds a new ImageEdit view for a specified PortalImage model for an acknowledgments logo.
Parameters:
Name | Type | Description |
---|---|---|
portalImage |
PortalImage | The PortalImage model to create an ImageEdit view for. |
showValidation()
showValidation - Show validation errors for each logoView