Function EntityContextProvider

  • Context providing consumers the current entity schema and values if any.

    You will usually want to wrap your form component with this context to help creating custom inputs.

    Parameters

    Returns Element

    Example

    function Form(values: CubicWebFormData) {
    return (
    <EntityContextProvider schema={entitySchema} values={values}>
    <MyFormContent />
    <EntityContextProvider/>
    )
    }

Generated using TypeDoc