-
Notifications
You must be signed in to change notification settings - Fork 3
uStoreProvider services providerState
Represents the state management for the provider. This class provides methods to interact with the state store.
Kind: global class
Constructs a new ProviderState instance. Initializes the state store.
Retrieves the dispatch function from the store.
Kind: instance property of ProviderState
Returns: function - The dispatch function.
Retrieves the subscribe function from the store.
Kind: instance property of ProviderState
Returns: function - The subscribe function.
Retrieves the current state from the store.
Kind: instance method of ProviderState
Returns: Object - The current state object.
Sets the state in the store.
Kind: instance method of ProviderState
| Param | Type | Description |
|---|---|---|
| state | Object |
The new state to set. |
Sets the initial state in the store.
Kind: instance method of ProviderState
Sets a custom state variable in the store.
Kind: instance method of ProviderState
| Param | Type | Description |
|---|---|---|
| name | string |
The name of the custom variable. |
| value | * |
The value to set for the custom variable. |
Sets multiple custom state variables in the store.
Kind: instance method of ProviderState
| Param | Type | Description |
|---|---|---|
| obj | Object |
An object containing key-value pairs of custom variable names and values. |
Deletes a custom state variable from the store.
Kind: instance method of ProviderState
| Param | Type | Description |
|---|---|---|
| name | string |
The name of the custom variable to delete. |
Merges new state into the custom state in the store.
Kind: instance method of ProviderState
| Param | Type | Description |
|---|---|---|
| newState | Object |
The new state object to merge. |
Clears the state in the store.
Kind: instance method of ProviderState
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