Function useJsonFormsCell

  • Provides bindings for cell elements. Cells are meant to show simple inputs, for example without error validation, within a larger structure like tables.

    Access bindings via the provided reactive 'cell' object. Dispatch changes via the provided handleChange method.

    Parameters

    Returns {
        cell: ComputedRef<{
            cells: JsonFormsCellRendererRegistryEntry[];
            config: any;
            data: any;
            enabled: boolean;
            errors: string;
            id: string;
            isValid: boolean;
            path: string;
            renderers: JsonFormsRendererRegistryEntry[];
            rootSchema: NonNullable<JsonSchema>;
            schema: NonNullable<JsonSchema>;
            uischema: ControlElement;
            visible: boolean;
        }>;
        handleChange(path, value): void;
    }

    • cell: ComputedRef<{
          cells: JsonFormsCellRendererRegistryEntry[];
          config: any;
          data: any;
          enabled: boolean;
          errors: string;
          id: string;
          isValid: boolean;
          path: string;
          renderers: JsonFormsRendererRegistryEntry[];
          rootSchema: NonNullable<JsonSchema>;
          schema: NonNullable<JsonSchema>;
          uischema: ControlElement;
          visible: boolean;
      }>
    • handleChange:function
      • Update handler that emits a data change

        Parameters

        • path: string

          the path to the data to be updated

        • value: any

          the new value that should be written to the given path

        Returns void

Generated using TypeDoc