Constructor
new EMLEntityView()
- Source:
Extends
Members
className
- Source:
events
- Source:
template :Underscore.Template
The template for this view
Type:
- Source:
Methods
clearOldDrafts()
Clear older drafts by iterating over the sorted list of drafts stored
by LocalForage and removing any beyond a hardcoded limit.
- Source:
initialize()
- Source:
onHide()
Hide the entity modal dialog
- Source:
onShow()
Handles the logic to be executed when thw modal view is shown. Restarts
existing listeners on the attributesView.
- Source:
render()
- Source:
renderAttributes()
Render the attributes of the entity
- Source:
renderEntityTemplate()
Render the entity template
- Source:
renderPreview()
Render the preview of the DataONEObject
- Source:
saveDraft()
Save a draft of the parent EML model
- Source:
show()
Show the entity in a modal dialog
- Source:
showTab(e)
Show the entity overview or attributes tab depending on the click
target
Parameters:
Name |
Type |
Description |
e |
Event
|
The click event |
- 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
- Source:
updateModel(e)
Update the model when the user changes an input field
Parameters:
Name |
Type |
Description |
e |
Event
|
The change event |
- Source: