Constructor
new ObjectVersionsView()
- Since:
- Source:
Extends
Members
className
- Source:
tagName
- Source:
type :string
Identifier used when the application inspects view types.
Type:
- Source:
Methods
Manually add tooltips to sub-views. Useful if they've been rendered
while not in the DOM.
- Source:
applyVisibilityState()
Show or hide sub-views based on their model's hiddenByUI attribute
- Source:
changeCollection(newCollection)
Swap the backing collection and refresh bindings.
Parameters:
| Name |
Type |
Description |
newCollection |
DataONEObjects
|
The collection to replace the
current one. |
- Source:
initialize(options)
Parameters:
| Name |
Type |
Description |
options |
object
|
Options passed to the view.
Properties
| Name |
Type |
Description |
collection |
DataONEObjects
|
Collection containing the versions to render. |
|
- Source:
listenToCollection()
Listens to collection events to trigger re-rendering.
- Source:
onClose()
Stops collection listeners prior to removal.
- Source:
remove()
- Source:
removeSubViews()
Cleans up and removes all the ObjectVersionView subviews.
- Source:
render() → {this}
Renders
children for each DataONE object version.
- Source:
Returns:
The view instance
-
Type
-
this
stopListeningCollection()
Stops listening to collection events.
- Source:
syncViews() → {this}
Ensure row subviews match the collection contents and order.
Reuses existing row views to avoid rebuilding the full list on each
incremental collection update.
- Source:
Returns:
The view instance.
-
Type
-
this
template(_collection) → {string}
Hook for future template customizations; currently unused placeholder.
Parameters:
| Name |
Type |
Description |
_collection |
DataONEObjects
|
The DataONEObjects collection. |
- Source:
Returns:
HTML string
-
Type
-
string