The proptype validator for a DynamicComponent.
The proptypes for DynamicComponentControlledProps.
This is generic to support being specific about the type of DynamicComponentControlledProps.value. The type should be infered from the arguments.
An optional proptype validator for the type of DynamicComponentControlledProps.value.
Generated using TypeDoc
A component along with the associated properties needed to render it as part of a StepDefinition.
Unlike StaticComponent, we inject some additional DynamicComponentControlledProps into the component to support interfacing with a Database. The DynamicComponentOptions.Component needs to support those extra props if it needs to interface with a Database. If not, use a StaticComponent instead.
const storeName = "myStore"; const myDatabaseMap = new ComponentDatabaseMap< MyDBSchema, typeof storeName >({ storeName, key: "input-0", property: ["my", "property"] }); const myInput = new DynamicComponent({ key: "my-input", Component: MyInput, props: { className: "my-input-class" }, defaultValue: "Nothing here...", emptyValue: "", databaseMap: myDatabaseMap });