definePage
definePage<
Data>(initialize):unknown
Defines the Custom Page client code and registers an implementation of the Pageclientcode MDL component. A Vault Java SDK
PageController can pass data using the load callback parameter.
Type Parameters
Section link for Type ParametersData
Parameters
Section link for Parametersinitialize
Section link for initialize(params) => unknown
The load callback function with parameter type PageParameters. Provides data to the client code from
Vault Java SDK's PageController. Executed from the PageController#onLoad response when
the Custom Page is initialized.
Returns
Section link for Returnsunknown
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 />);
})