-
Notifications
You must be signed in to change notification settings - Fork 1
Custom Startup Properties
maximilianweidenauer edited this page Oct 3, 2023
·
1 revision
Send custom startup properties to the server.
Used if you want to have extra properties sent by the WebApp to work with them in your java code.
- Create a function you will then pass as
onStartup
function to yourReactUI
component. In this function call theapi.addStartupProperties
function and add an array with your key-value pairs as objects.
Parameter | Type | Description |
---|---|---|
startupProps | Array<[key:string]: any> | Array of the startup properties to be sent |
const onStartup = () => {
api.addStartupProperties([{ "test.parameter": true }, { test2: 'value2' }]);
}