Options
All
  • Public
  • Public/Protected
  • All
Menu

JSON Forms React Core

Index

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

JsonFormsPropTypes

JsonFormsPropTypes: ControlProps | CombinatorProps | LayoutProps | CellProps | ArrayLayoutProps | StatePropsOfControlWithDetail | OwnPropsOfRenderer

Renderer

Renderer: RendererComponent<RendererProps & any, __type> | StatelessRenderer<RendererProps & any>

Represents a Renderer, which might either be a component or a function.

Variables

Const DispatchCell

DispatchCell: ComponentClass<OwnPropsOfCell, any> | FunctionComponent<OwnPropsOfCell> = withJsonFormsDispatchCellProps(Dispatch)

Const JsonFormsContext

JsonFormsContext: Context<JsonFormsStateContext> = React.createContext<JsonFormsStateContext>({core: initialCoreState,renderers: []})

Const JsonFormsDispatch

JsonFormsDispatch: NamedExoticComponent<OwnPropsOfJsonFormsRenderer & JsonFormsReactProps> & object = React.memo((props: OwnPropsOfJsonFormsRenderer & JsonFormsReactProps) => {const renderProps = useJsonFormsDispatchRendererProps(props);return <JsonFormsDispatchRenderer {...renderProps} />})

Const JsonFormsReduxContext

JsonFormsReduxContext: NamedExoticComponent<object> & object & object = connect((state: JsonFormsState) => ({...state.jsonforms}))(JsonFormsReduxProvider)

Const ResolvedJsonFormsDispatch

ResolvedJsonFormsDispatch: NamedExoticComponent<OwnPropsOfJsonFormsRenderer & JsonFormsReactProps> & object = React.memo((props: OwnPropsOfJsonFormsRenderer & JsonFormsReactProps) => {const renderProps = useJsonFormsDispatchRendererProps(props);return <ResolvedJsonFormsDispatchRenderer {...renderProps} />})

Const TestAndRender

TestAndRender: NamedExoticComponent<object> & object = React.memo((props: {uischema: UISchemaElement;schema: JsonSchema;path: string;enabled: boolean;renderers: JsonFormsRendererRegistryEntry[];cells: JsonFormsCellRendererRegistryEntry[];id: string;}) => {const renderer = useMemo(() => maxBy(props.renderers, r => r.tester(props.uischema, props.schema)),[props.renderers, props.uischema, props.schema]);if (renderer === undefined ||renderer.tester(props.uischema, props.schema) === -1) {return <UnknownRenderer type={'renderer'} />;} else {const Render = renderer.renderer;return (<Renderuischema={props.uischema}schema={props.schema}path={props.path}enabled={props.enabled}renderers={props.renderers}cells={props.cells}id={props.id}/>);}})

Const hasRefs

hasRefs: (Anonymous function) & MemoizedFunction = memoize((schema: JsonSchema): boolean => {if (schema !== undefined) {return Object.keys(findRefs(schema)).length > 0;}return false;},(schema: JsonSchema) => (schema ? hash(schema) : false))

Functions

Const JsonForms

Const JsonFormsReduxProvider

  • JsonFormsReduxProvider(__namedParameters: object): Element

Const JsonFormsStateProvider

  • JsonFormsStateProvider(__namedParameters: object): Element

Const areEqual

Const ctxDispatchToArrayControlProps

  • ctxDispatchToArrayControlProps(dispatch: Dispatch<ReducerAction<any>>): DispatchPropsOfArrayControl

Const ctxDispatchToControlProps

  • ctxDispatchToControlProps(dispatch: Dispatch<ReducerAction<any>>): DispatchPropsOfControl

Const ctxToAllOfProps

Const ctxToAnyOfProps

Const ctxToArrayControlProps

Const ctxToArrayLayoutProps

Const ctxToCellProps

Const ctxToControlProps

Const ctxToControlWithDetailProps

  • ctxToControlWithDetailProps(ctx: JsonFormsStateContext, props: OwnPropsOfControl): StatePropsOfControlWithDetail

Const ctxToDispatchCellProps

Const ctxToEnumCellProps

Const ctxToEnumControlProps

  • ctxToEnumControlProps(ctx: JsonFormsStateContext, props: OwnPropsOfControl): StatePropsOfControl & OwnPropsOfEnum

Const ctxToJsonFormsDispatchProps

  • ctxToJsonFormsDispatchProps(ctx: JsonFormsStateContext, ownProps: OwnPropsOfJsonFormsRenderer): StatePropsOfJsonFormsRenderer

Const ctxToLayoutProps

Const ctxToMasterListItemProps

  • ctxToMasterListItemProps(ctx: JsonFormsStateContext, ownProps: OwnPropsOfMasterListItem): StatePropsOfMasterItem

Const ctxToOneOfEnumControlProps

  • ctxToOneOfEnumControlProps(ctx: JsonFormsStateContext, props: OwnPropsOfControl): StatePropsOfControl & OwnPropsOfEnum

Const ctxToOneOfProps

Const jsonformsReducer

  • jsonformsReducer(additionalReducers?: object): Reducer<JsonFormsSubStates>

Const useEffectAfterFirstRender

  • useEffectAfterFirstRender(effect: function, dependencies: Array<any>): void
  • Hook similar to useEffect with the difference that the effect is only executed from the second call onwards.

    Parameters

    • effect: function
        • (): void
        • Returns void

    • dependencies: Array<any>

    Returns void

Const useJsonForms

useJsonFormsDispatchRendererProps

  • useJsonFormsDispatchRendererProps(props: OwnPropsOfJsonFormsRenderer & JsonFormsReactProps): object
  • Parameters

    Returns object

    • cells: JsonFormsCellRendererRegistryEntry[]
    • enabled: boolean
    • path: string
    • refResolver: any
    • renderers: JsonFormsRendererRegistryEntry[]
    • rootSchema: JsonSchema4 | JsonSchema7
    • schema: JsonSchema4 | JsonSchema7
    • uischema: UISchemaElement

Const withContextToAllOfProps

  • withContextToAllOfProps(Component: ComponentType<CombinatorProps>): ComponentType<OwnPropsOfControl>

Const withContextToAnyOfProps

  • withContextToAnyOfProps(Component: ComponentType<CombinatorProps>): ComponentType<OwnPropsOfControl>

Const withContextToArrayControlProps

  • withContextToArrayControlProps(Component: ComponentType<ArrayControlProps>): ComponentType<OwnPropsOfControl>

Const withContextToArrayLayoutProps

  • withContextToArrayLayoutProps(Component: ComponentType<ArrayLayoutProps>): ComponentType<OwnPropsOfControl>

Const withContextToCellProps

  • withContextToCellProps(Component: ComponentType<CellProps>): ComponentType<OwnPropsOfCell>

Const withContextToControlProps

  • withContextToControlProps(Component: ComponentType<ControlProps>): ComponentType<OwnPropsOfControl>

Const withContextToDetailProps

  • withContextToDetailProps(Component: ComponentType<StatePropsOfControlWithDetail>): ComponentType<OwnPropsOfControl>

Const withContextToDispatchCellProps

  • withContextToDispatchCellProps(Component: ComponentType<DispatchCellProps>): ComponentType<OwnPropsOfCell>

Const withContextToEnumCellProps

  • withContextToEnumCellProps(Component: ComponentType<EnumCellProps>): ComponentType<OwnPropsOfEnumCell>

Const withContextToEnumProps

  • withContextToEnumProps(Component: ComponentType<ControlProps & OwnPropsOfEnum>): ComponentType<OwnPropsOfControl & OwnPropsOfEnum>

Const withContextToLayoutProps

  • withContextToLayoutProps(Component: ComponentType<LayoutProps>): ComponentType<OwnPropsOfJsonFormsRenderer>

Const withContextToMasterListItemProps

  • withContextToMasterListItemProps(Component: ComponentType<StatePropsOfMasterItem>): ComponentType<OwnPropsOfMasterListItem>

Const withContextToOneOfEnumProps

  • withContextToOneOfEnumProps(Component: ComponentType<ControlProps & OwnPropsOfEnum>): ComponentType<OwnPropsOfControl & OwnPropsOfEnum>

Const withContextToOneOfProps

  • withContextToOneOfProps(Component: ComponentType<CombinatorProps>): ComponentType<OwnPropsOfControl>

Const withJsonFormsAllOfProps

  • withJsonFormsAllOfProps(Component: ComponentType<StatePropsOfCombinator>): ComponentType<OwnPropsOfControl>

Const withJsonFormsAnyOfProps

  • withJsonFormsAnyOfProps(Component: ComponentType<CombinatorProps>): ComponentType<OwnPropsOfControl>

Const withJsonFormsArrayControlProps

  • withJsonFormsArrayControlProps(Component: ComponentType<ArrayControlProps>): ComponentType<OwnPropsOfControl>

Const withJsonFormsArrayLayoutProps

  • withJsonFormsArrayLayoutProps(Component: ComponentType<ArrayLayoutProps>): ComponentType<OwnPropsOfControl>

Const withJsonFormsCellProps

  • withJsonFormsCellProps(Component: ComponentType<CellProps>): ComponentType<OwnPropsOfCell>

Const withJsonFormsContext

  • withJsonFormsContext(Component: ComponentType<WithContext & any>): ComponentType<any>

Const withJsonFormsControlProps

  • withJsonFormsControlProps(Component: ComponentType<ControlProps>): ComponentType<OwnPropsOfControl>

Const withJsonFormsDetailProps

  • withJsonFormsDetailProps(Component: ComponentType<StatePropsOfControlWithDetail>): ComponentType<OwnPropsOfControl>

Const withJsonFormsDispatchCellProps

  • withJsonFormsDispatchCellProps(Component: ComponentType<DispatchCellProps>): ComponentType<OwnPropsOfCell>

Const withJsonFormsEnumCellProps

  • withJsonFormsEnumCellProps(Component: ComponentType<EnumCellProps>): ComponentType<OwnPropsOfEnumCell>

Const withJsonFormsEnumProps

  • withJsonFormsEnumProps(Component: ComponentType<ControlProps & OwnPropsOfEnum>): ComponentType<OwnPropsOfControl & OwnPropsOfEnum>

Const withJsonFormsLayoutProps

  • withJsonFormsLayoutProps(Component: ComponentType<LayoutProps>): ComponentType<OwnPropsOfLayout>

Const withJsonFormsMasterListItemProps

  • withJsonFormsMasterListItemProps(Component: ComponentType<StatePropsOfMasterItem>): ComponentType<OwnPropsOfMasterListItem>

Const withJsonFormsOneOfEnumProps

  • withJsonFormsOneOfEnumProps(Component: ComponentType<ControlProps & OwnPropsOfEnum>): ComponentType<OwnPropsOfControl & OwnPropsOfEnum>

Const withJsonFormsOneOfProps

  • withJsonFormsOneOfProps(Component: ComponentType<CombinatorProps>): ComponentType<OwnPropsOfControl>

Object literals

Const initialCoreState

initialCoreState: object

ajv

ajv: undefined = undefined

data

data: object

Type declaration

errors

errors: undefined[] = []

refParserOptions

refParserOptions: undefined = undefined

schema

schema: object

Type declaration

uischema

uischema: undefined = undefined

validator

  • validator(): true

Generated using TypeDoc