Constructor
new EMLOtherEntityView()
- Source:
Extends
Members
A list of file formats that can be auto-filled with attribute information
Type:
- Since:
- Inherited From:
- 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:
Disable the Fill Attributes button
- Since:
- Inherited From:
- Source:
Enable the Fill Attributes button
- Since:
- Inherited From:
- Source:
handleFill(e)
Handle the click event on the fill button
Parameters:
Name |
Type |
Description |
e |
Event
|
The click event |
- Since:
- Inherited From:
- Source:
handleFillViaFetch()
Handle the fill event by fetching the object
- Since:
- Inherited From:
- Source:
handleFillViaFile(file)
Handle the fill event using a File object
Parameters:
Name |
Type |
Description |
file |
File
|
A File object to fill from |
- Since:
- Inherited From:
- Source:
hide()
Hide the entity modal dialog
- Inherited From:
- Source:
hideAttributeValidation()
Hide the attribute validation errors from the attribute navigation menu
- Inherited From:
- Source:
previewAttrRemove()
Show the user what will be removed when this remove button is clicked
- 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:
showAttribute(e)
Shows the attribute in the attribute editor
Parameters:
Name |
Type |
Description |
e |
Event
|
JS event or attribute model |
- Inherited From:
- Source:
showAttributeValidation(attr)
Show the attribute validation errors in the attribute navigation menu
Parameters:
- Inherited From:
- Source:
showTab(e)
Show the entity overview or attributes tab
depending on the click target
Parameters:
Name |
Type |
Description |
e |
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:
tryParseAndFillAttributeNames(content)
Attempt to parse header and fill attributes names
Parameters:
Name |
Type |
Description |
content |
string
|
Part of a file to attempt to parse |
- Since:
- Inherited From:
- Source:
updateAttributeNames(names)
Update attribute names from an array
This will update existing attributes' names or create new
attributes as needed. This also performs a full re-render.
Parameters:
Name |
Type |
Description |
names |
Array.<string>
|
A list of names to apply |
- Since:
- Inherited From:
- Source:
Update the Fill button temporarily and set it back to the default
Used to show success or failure of the filling operation
Parameters:
Name |
Type |
Description |
messageHTML |
string
|
HTML template string to set
temporarily |
disableTimeout |
boolean
|
If true, the timeout will not be set |
- Since:
- Inherited From:
- Source: