Class: EMLOtherEntityView

EMLOtherEntityView()

An EMLOtherEntityView expands on the EMLEntityView to show attributes of the EML specific to the otherEntity

Constructor

new EMLOtherEntityView()

Source:

Extends

Members

className

Overrides:
Source:

events

Overrides:
Source:

template :Underscore.Template

The template for this view
Type:
  • Underscore.Template
Overrides:
Source:

Methods

clearOldDrafts()

Clear older drafts by iterating over the sorted list of drafts stored by LocalForage and removing any beyond a hardcoded limit.
Inherited From:
Source:

initialize()

Overrides:
Source:

onHide()

Hide the entity modal dialog
Inherited From:
Source:

onShow()

Handles the logic to be executed when thw modal view is shown. Restarts existing listeners on the attributesView.
Inherited From:
Source:

render()

Overrides:
Source:

renderAttributes()

Render the attributes of the entity
Inherited From:
Source:

renderEntityTemplate()

Render the entity template
Inherited From:
Source:

renderPreview()

Render the preview of the DataONEObject
Inherited From:
Source:

saveDraft()

Save a draft of the parent EML model
Inherited From:
Source:

show()

Show the entity in a modal dialog
Inherited From:
Source:

showTab(e)

Show the entity overview or attributes tab depending on the click target
Parameters:
Name Type Description
e Event The click event
Inherited From:
Source:

showValidation()

Will display validation styling and messaging. Should be called after this view's model has been validated and there are error messages to display
Inherited From:
Source:

updateModel(e)

Update the model when the user changes an input field
Parameters:
Name Type Description
e Event The change event
Inherited From:
Source: