Class: DataPackageView

DataPackageView()

The main view of a Data Package in MetacatUI. The view is a file/folder browser

Screenshot

Constructor

new DataPackageView()

Source:

Members

parentEditorView :EditorView

A reference to the parent EditorView that contains this view
Type:
Since:
  • 2.15.0
Source:

Methods

addAll()

Add all rows to the DataPackageView
Source:

addFilesAndFolders()

Add all the files and folders
Source:

addNestedPackages(dataPackage)

Adds a nested data package to the package table.
Parameters:
Name Type Description
dataPackage Object The data package to be added.
Since:
  • 2.28.0
Source:

addOne()

Add a single DataItemView row to the DataPackageView
Source:

checkForPrivateMembers()

Check for private members and disable download buttons if necessary.
Since:
  • 2.28.0
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:
  • 2.28.0
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:
  • 2.28.0
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:
  • 2.28.0
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:
  • 2.28.0
Source:

getNestedPackages()

Retrieves and processes nested packages for the current package.
Since:
  • 2.28.0
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:
  • 2.15.0
Source:

toggleRows()

Show or hide the data rows associated with the event row science metadata
Source: