VaultModule
Properties
Section link for PropertiesvaultApiClient
Section link for vaultApiClientvaultApiClient:
VaultApiClient
Methods
Section link for MethodsdefineFake()
Section link for defineFake()defineFake<
Data>(initialize):unknown
Internal
This is only to ensure websdk works with more than one type of plugin. Please remove once we have a type other than "page"
Type Parameters
Section link for Type ParametersData
Parameters
Section link for Parametersinitialize
Section link for initialize(params) => unknown
Returns
Section link for Returnsunknown
definePage()
Section link for definePage()definePage<
Data>(initialize):unknown
definePage is the mechanism for registering Pageclientcode implementation. Vault Java SDK PageControllers can pass data.
Type Parameters
Section link for Type ParametersData
Parameters
Section link for Parametersinitialize
Section link for initialize(params) => unknown
The callback function that is executed from a PageController's onLoad Response when first initialized.
Returns
Section link for Returnsunknown
A JsonObject which is returned from the response from the Vault Java SDK onEvent method
Examples
Section link for Examplesexport default Vault.definePage(({element, data, pageContext, sendEvent})=>{
element.textContent="Hello World";
});import { createRoot } from 'react-dom/client';
import HelloWorld from './helloWorld';
export default Vault.definePage(({element, data, pageContext, sendEvent})=>{
const root = createRoot(element);
root.render(<HelloWorld />);
})