Lightning Web Component setState
Method
Use the setState
method to set the state of the rendered Lightning web component for CRM Analytics dashboards.
Argument Name | Description |
---|---|
state | The state to update the CRM Analytics dashboard component with. |
Add your implementation of the setState
call into the wrapper Javascript and HTML for your component.
To use the communityDashboard component, replace wave-wave-dashboard-lwc
with wave-community-dashboard
.
The HTML for the component:
The Javascript for the component, which implements setState()
:
The state
can be set dynamically from user input or from another dashboard’s state
. For the complete dashboard state
structure, refer to the Analytics Dashboard JSON Reference guide.
See Also