Zum Hauptinhalt springen

createReactGadget

createReactGadget<TOptions, TGadget>(options): TGadget

Creates an otris.gadget.gui.HTML instance and attaches a client-side function, which renders a React component into the HTML instance once the gadget is loaded in the client.

Type Parameters​

TOptions​

TOptions extends object

TGadget​

TGadget extends TargetGadgetInstance = HTML

Parameters​

options​

CreateReactGadgetOptions<TOptions, TGadget>

Options for creating the React gadget.

Returns​

TGadget

  • The HTML instance into which the React component is rendered.