Constructor
new DataPackageView()
- Source:
Extends
Members
A reference to the parent EditorView that contains this view
Type:
- Since:
- Source:
Methods
addAll()
Add all rows to the DataPackageView
- Source:
addFilesAndFolders(sortedFilePathObj) → {boolean}
Add all the files and folders
Parameters:
Name |
Type |
Description |
sortedFilePathObj |
object
|
An object where keys are folder paths and values are arrays of file IDs |
- Source:
Returns:
- Returns false if the input object is not provided
-
Type
-
boolean
addNestedPackages(dataPackage)
Adds a nested data package to the package table.
Parameters:
Name |
Type |
Description |
dataPackage |
object
|
The data package to be added. |
- Since:
- Source:
addOne(item, dataPackage)
Add a single DataItemView row to the DataPackageView
Parameters:
Name |
Type |
Description |
item |
|
|
dataPackage |
|
|
- Source:
checkForPrivateMembers()
Check for private members and disable download buttons if necessary.
- Since:
- Source:
collapse(e)
Collapse function to hide rows when a user clicks on a collapse control.
Parameters:
Name |
Type |
Description |
e |
Event
|
The event object. |
- Since:
- Source:
collapseAll(e)
Collapse all function to hide all child rows when a user clicks on a collapse-all control.
Parameters:
Name |
Type |
Description |
e |
Event
|
The event object. |
- Since:
- Source:
expand(e)
Expand function to show hidden rows when a user clicks on an expand control.
Parameters:
Name |
Type |
Description |
e |
Event
|
The event object. |
- Since:
- Source:
expandAll(e)
Expand all function to show all child rows when a user clicks on an expand-all control.
Parameters:
Name |
Type |
Description |
e |
Event
|
The event object. |
- Since:
- Source:
getNestedPackages()
Retrieves and processes nested packages for the current package.
- Since:
- Source:
onClose()
Close subviews as needed
- Source:
removeOne(item)
Remove the subview represented by the given model item.
Parameters:
Name |
Type |
Description |
item |
|
The model representing the sub view to be removed |
- Source:
render()
Render the DataPackage HTML
- Source:
renderDataPackage()
Render the Data Package View and insert it into this view
- Source:
renderShareControl()
Renders a control that opens the AccessPolicyView for editing permissions on this package
- Since:
- Source:
toggleRows(event)
Show or hide the data rows associated with the event row science metadata
Parameters:
Name |
Type |
Description |
event |
|
|
- Source: