Class: PortEditorLogosView

PortEditorLogosView()

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:

model :Portal

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

tagName :string

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

type :string

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

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.
Source:

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.
Source:

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
Source:

render()

Renders this view
Source:

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.
Source:

showValidation()

showValidation - Show validation errors for each logoView
Source: