- Source:
Methods
getDatafileCount(options) → {Promise.<number>}
The total number of datafiles being requested in this Cart.
Parameters:
Name | Type | Description |
---|---|---|
options |
object | as specified in the Angular documentation |
- Source:
Returns:
the total number of datafiles being requested (defered)
- Type
- Promise.<number>
getDatafileCount(timeout) → {Promise.<number>}
The total number of datafiles being requested in this Cart.
Parameters:
Name | Type | Description |
---|---|---|
timeout |
Promise | if resolved will cancel the request |
- Source:
Returns:
the total number of datafiles being requested (defered)
- Type
- Promise.<number>
getDatafileCount() → {Promise.<number>}
The total number of datafiles being requested in this Cart.
- Source:
Returns:
the total number of datafiles being requested (defered)
- Type
- Promise.<number>
getSize(options) → {Promise.<number>}
Gets the total size of the Cart.
Parameters:
Name | Type | Description |
---|---|---|
options |
object | as specified in the Angular documentation |
- Source:
Returns:
the total size in bytes (defered)
- Type
- Promise.<number>
getSize(timeout) → {Promise.<number>}
Gets the total size of the Cart.
Parameters:
Name | Type | Description |
---|---|---|
timeout |
Promise | if resolved will cancel the request |
- Source:
Returns:
the total size in bytes (defered)
- Type
- Promise.<number>
getSize() → {Promise.<number>}
Gets the total size of the Cart.
- Source:
Returns:
the total size in bytes (defered)
- Type
- Promise.<number>
isCartItem(entityType, entityId) → {boolean}
Tests to see if item is already in Cart.
Parameters:
Name | Type | Description |
---|---|---|
entityType |
string | can be 'investigation', 'dataset' or 'datafile' |
entityId |
number | the id of the entity |
- Source:
Returns:
- Type
- boolean