Create your own components
Learn how to create your own Lightning web components or Aura components.
Zuora CPQ
list_alt
Learn how to create your own Lightning web components or Aura components.
When creating components, you must ensure your component implementation meets the following requirements:
pageState
, metricState
, quoteState
, and textTitle
attributes must be declared as global attributes.Component type | Code example |
---|---|
LWC | @api quoteState;@api metricState;@api pageState;@api textTitle |
Aura | <aura:attribute name="quoteState" type="Map" access="global" /><aura:attribute name="metricState" type="Map" access="global"/><aura:attribute name="pageState" type="Map" access="global"/><aura:attribute name="textTitle" type="String" access="global"/ |
Component type | Code example |
---|---|
LWC | In LWC metadata file:<isExposed>true</isExposed> |
Aura | <aura:component access="GLOBAL"> |