ButtonWallet
Ce contenu n’est pas encore disponible dans votre langue.
ButtonWallet(
args):Element|null
Defined in: vendor/wallet/sdk/components/src/components/ButtonWallet/ButtonWallet.tsx:95
Button to open wallet modal
Parameters
Section titled “Parameters”classname?
Section titled “classname?”string = ""
Classname to apply to the button
placement?
Section titled “placement?”string
targetInteraction?
Section titled “targetInteraction?”"referral" | "create_referral_link" | "purchase" | `custom.${string}`
Target interaction behind this sharing action (will be used to get the right reward to display)
useReward?
Section titled “useReward?”boolean
Do we display the reward on the button?
Default Value
false
Returns
Section titled “Returns”Element | null
The wallet button with <button> tag
Examples
Section titled “Examples”Basic usage:
<frak-button-wallet></frak-button-wallet>Using a custom class:
<frak-button-wallet classname="button button-primary"></frak-button-wallet>Using reward information:
<frak-button-wallet use-reward></frak-button-wallet>Using reward information for specific reward:
<frak-button-wallet use-reward target-interaction="custom.customerMeeting"></frak-button-wallet>Using placement:
<frak-button-wallet placement="hero-wallet"></frak-button-wallet>- `modalBuilder()` for more info about the modal display
- `getMerchantInformation()` for more info about the estimated reward fetching