-
Notifications
You must be signed in to change notification settings - Fork 3
uStoreProvider services assets
- Assets
-
Represent the assets logic in the system
-
GUID :
string -
globally unique identifier
-
AssetListItemResponseModel :
Object -
Provides graphic asset DTO.
-
AssetResponseModel :
Object -
Provides graphic asset DTO.
Represent the assets logic in the system
Kind: global class
assets.getAssets(propertyID) ⇒ Array.<AssetListItemResponseModel>
Set state.assets with the requested model as AssetListItemResponseModel
Kind: instance method of Assets
Returns: Array.<AssetListItemResponseModel> - Returns collection of the assets.
| Param | Type | Description |
|---|---|---|
| propertyID | string |
Graphic dial ID |
assets.getAsset(assetID) ⇒ AssetResponseModel
Set state.selectedAsset with the requested assets model as AssetResponseModel
Kind: instance method of Assets
Returns: AssetResponseModel - Returns graphic assets detailed info.
| Param | Type | Description |
|---|---|---|
| assetID | string |
Graphic asset ID. |
Filters the list of assets, removing the asset with the specified identifier.
Kind: instance method of Assets
Returns: string - Returns deleted graphic asset ID.
| Param | Type | Description |
|---|---|---|
| assetID | string |
Graphic asset ID. |
assets.uploadAsset(propertyID, data, replaceIfExists) ⇒ AssetListItemResponseModel
Updates state.assets collection with the new graphic asset model as AssetListItemResponseModel2
Kind: instance method of Assets
Returns: AssetListItemResponseModel - Returns uploaded asset.
| Param | Type | Description |
|---|---|---|
| propertyID | string |
Graphic dial ID |
| data | File |
File to upload |
| replaceIfExists | boolean |
Show if asset should be replaced |
globally unique identifier
Provides graphic asset DTO.
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| ThumbnailUrl | string |
Graphic asset thumbnail URL. |
| AssetID | string |
Graphic asset ID. |
| DisplayName | string |
Graphic asset name. |
| IsUploaded | boolean |
Flag that use to distinguish user uploaded asset from PE asset. |
| FileName | string |
Graphic asset name with extension. |
| ModificationDate | Date |
Graphic asset modification date. |
Provides graphic asset DTO.
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| AssetID | string |
Graphic asset ID. |
| DisplayName | string |
Graphic asset name. |
| IsUploaded | boolean |
Flag that use to distinguish user uploaded asset from PE asset. |
| FileName | string |
Graphic asset name with extension. |
| Url | string |
Graphic asset URL to the original content. |
| ThumbnailUrl | string |
Graphic asset thumbnail URL. |
| Width | number |
Graphic asset width in pixels. |
| Height | number |
Graphic asset height in pixels. |
| SizeKB | number |
Graphic asset size in kilobyte. |
uStore NG Themes
uStore NG Extensibility
Theme customization overview
Editing CSS variables
Editing the CSS
Migration from Legacy to NG
Theme development overview
Getting started
Theme file structure
Publishing the theme
Upgrading a Custom Theme
Editing HTML content
Adding a new page
Adding assets
Adding a component
Customizing a skin
Modifying CSS variables
Editing fonts
Adding JavaScript
uStore library
Working with REST API
Accessing uStore data
Managing custom state
Working with localizations
General services
Adding an external package
Customizing the Theme Editor
Theme tips and tricks
uStoreProvider Reference
Tax Webhook
Order Approval Webhook
Manufacturer Webhook
Widgets
Cart Export Webhook
Input Control Development Guide
Using uStore as a web component