Programmatically attach the Identity Button behavior to a merchant's custom button element.
Timings
attach
method the render
event is triggered after the button event handlers
were attached to the custom button and openid configuration was fetched.The render
event is triggered after the button is fully visible.
render
Render event handler callback, triggered on render.
The click
event is triggered after the button is clicked.
click
Render event handler callback, triggered on click.
State "disabled" disables/enables the button, e.g. makes it non-interactive/interactive State "loading" displays/hides the loading indicator in the button
Optional
value: booleancan be used to set the state to a specific value instead of toggling
Interface to the Identity Button interface.