Constructor
new VlocityDCMyAccount()
Example
Sample Usage -
Include the component in your template by adding vlocity-my-account custom tag
<vlocity-my-account></vlocity-my-account>
KEY INFO -
events fired : none
events registered : none
Dependency - vlocity-my-account is an independent component and has no dependency on parent component.
User needs to be logged in to access vlocity-my-account.
| Parent Component | Expected Children Components |
|------------------|------------------------------|
| none | vlocity-dc-assets-lists |
Sample with slots -
<vlocity-my-account>
<span slot="{slot_name}">
Custom HTML elements goes here
</span>
</vlocity-my-account>
List of available slots -
| Slot names | Dynamic | Description | Impact |
|-----------------------------|-------------|------------------------------------------------------------------------|
| dc-loading-message | - | Slot for loading message | Allows adding of loading message |
| dc-assets-list | - | Wrapper for assets list | Replaces assets list |
Extends
- LitElement
Methods
(async, static) getAssets()
Method to get assets for logged in user
(static) getAssetsGetInput()
This function is used to get getAssets input object
(static) getAssetsHandleFailure(error)
This function is used to handle getAssets failure
Parameters:
Name | Type | Description |
---|---|---|
error |
object | Error Object from SDK call. |
(static) getAssetsPostHook(response)
A custom function to be used by customers for customisation, any custom action after getAssets call is successfull can be written here
Parameters:
Name | Type | Description |
---|---|---|
response |
object | SDK Response object. |
(static) getAssetsPreHook(input)
A custom function to be used by customers for customisation, any custom action prior to getAssets call can be written here
Parameters:
Name | Type | Description |
---|---|---|
input |
object | Current Input Object. |
(static) getAssetsPreSDKCalls()
This function is used to execute any action before getAssets SDK call is made.
(static) getAssetsProcessResponse(assets)
This function is used to process getAssets response
Parameters:
Name | Type | Description |
---|---|---|
assets |
object | Assets list from SDK call. |
(static) getAssetsSDKCall(input)
This function is used to make SDK call for getAssets
Parameters:
Name | Type | Description |
---|---|---|
input |
object | Current Input Object. |