Options
All
  • Public
  • Public/Protected
  • All
Menu

JSON Forms Vue

Index

Type aliases

CompType

CompType<S, _V>: PropType<S>

Compatibility type as defineComponent of '@vue/composition-api' can't properly handle PropTypes.

Type parameters

  • S

  • _V

Nullable

Nullable<T>: object

Type parameters

  • T

Type declaration

Required

Required<T>: T extends object ? object : T

Type parameters

  • T

Functions

Const arrayControlInit

  • arrayControlInit(): object

Const arrayLayoutInit

  • arrayLayoutInit(): object

Const cellInit

  • cellInit(): object
  • Returns object

    • cells: null
    • config: null
    • data: null
    • enabled: null
    • errors: null
    • id: null
    • isValid: null
    • path: null
    • renderers: null
    • rootSchema: null
    • schema: null
    • uischema: null
    • visible: null

Const combinatorControlInit

  • combinatorControlInit(): object

Const controlInit

  • controlInit(): object
  • Returns object

    • cells: null
    • config: null
    • data: null
    • description: null
    • enabled: null
    • errors: null
    • id: null
    • label: null
    • path: null
    • required: null
    • rootSchema: null
    • schema: null
    • uischema: null
    • visible: null

Const controlWithDetailInit

  • controlWithDetailInit(): object

Const enumCellInit

  • enumCellInit(): object

Const enumControlInit

  • enumControlInit(): object

Const layoutInit

  • layoutInit(): object
  • Returns object

    • cells: null
    • data: null
    • direction: null
    • enabled: null
    • path: null
    • renderers: null
    • schema: null
    • uischema: null
    • visible: null

Const masterListItemInit

  • masterListItemInit(): object

Const masterListItemProps

  • masterListItemProps(): object
  • Constructs a props declaration for Vue components which shall be used as master list items.

    Returns object

    • handleSelect: object
      • default: undefined
      • required: false
      • type: object | function | object | (object | function | object)[]
    • index: object
      • required: true
      • type: NumberConstructor
    • path: object
      • required: true
      • type: StringConstructor
    • removeItem: object
      • default: undefined
      • required: false
      • type: object | function | object | (object | function | object)[]
    • schema: object
      • required: true
      • type: object | function | (object | function)[]
    • selected: object
      • required: true
      • type: BooleanConstructor

Const rendererInit

  • rendererInit(): object

Const rendererProps

  • rendererProps<U>(): object
  • Constructs a props declaration for Vue components which can be used for registered renderers and cells. These are typically used in combination with one of the provided bindings, e.g. 'useJsonFormsControl'.

    Use the generic type parameter when using a specialized binding, e.g. rendererProps<Layout>() in combination with useJsonFormsLayout or rendererProps<ControlElement>() in combination with useJsonFormsControl.

    Type parameters

    • U

    Returns object

    • cells: object
      • default: undefined
      • required: boolean
      • type: object | function | (object | function)[]
    • enabled: object
      • default: undefined
      • required: false
      • type: BooleanConstructor
    • path: object
      • required: true
      • type: StringConstructor
    • renderers: object
      • default: undefined
      • required: boolean
      • type: object | function | (object | function)[]
    • schema: object
      • required: true
      • type: object | function | (object | function)[]
    • uischema: object
      • required: true
      • type: object | function | (object | function)[]

useControl

  • useControl<R, D, P>(props: P, stateInit: function, stateMap: function): object
  • useControl<R, D, P>(props: P, stateInit: function, stateMap: function, dispatchMap: function): object & D
  • Type parameters

    • R

    • D

    • P

    Parameters

    • props: P
    • stateInit: function
    • stateMap: function
        • (state: JsonFormsState, props: P): R
        • Parameters

          • state: JsonFormsState
          • props: P

          Returns R

    Returns object

  • Type parameters

    • R

    • D

    • P

    Parameters

    • props: P
    • stateInit: function
    • stateMap: function
        • (state: JsonFormsState, props: P): R
        • Parameters

          • state: JsonFormsState
          • props: P

          Returns R

    • dispatchMap: function
        • (dispatch: Dispatch<CoreActions>): D
        • Parameters

          • dispatch: Dispatch<CoreActions>

          Returns D

    Returns object & D

Const useJsonFormsAllOfControl

  • useJsonFormsAllOfControl(props: ControlProps): object & DispatchPropsOfControl
  • Provides bindings for 'Control' elements which resolve to 'allOf' schema elements.

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

    Parameters

    Returns object & DispatchPropsOfControl

Const useJsonFormsAnyOfControl

  • useJsonFormsAnyOfControl(props: ControlProps): object & DispatchPropsOfControl
  • Provides bindings for 'Control' elements which resolve to 'anyOf' schema elements.

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

    Parameters

    Returns object & DispatchPropsOfControl

Const useJsonFormsArrayControl

  • useJsonFormsArrayControl(props: ControlProps): object & DispatchPropsOfArrayControl
  • Provides bindings for 'Control' elements which resolve to 'array' schema elements.

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

    Parameters

    Returns object & DispatchPropsOfArrayControl

Const useJsonFormsArrayLayout

  • Provides bindings for 'Control' elements which resolve to 'array' elements which shall be rendered as a layout instead of a control.

    Access bindings via the provided reactive 'layout' object.

    Parameters

    Returns object

    • layout: object

Const 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 object

    • cell: object

Const useJsonFormsControl

  • useJsonFormsControl(props: ControlProps): object & DispatchPropsOfControl
  • Provides generic bindings for 'Control' elements. Should be used when no specialized bindings are appropriate.

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

    Parameters

    Returns object & DispatchPropsOfControl

Const useJsonFormsControlWithDetail

  • useJsonFormsControlWithDetail(props: ControlProps): object & DispatchPropsOfControl
  • Provides bindings for 'Control' elements which can provide a 'detail', for example array and object renderers.

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

    Parameters

    Returns object & DispatchPropsOfControl

Const useJsonFormsDispatchCell

  • Provides bindings for a cell dispatcher. 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 object

    • cell: object

Const useJsonFormsEnumCell

  • Provides bindings for enum 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 object

    • cell: object

Const useJsonFormsEnumControl

  • useJsonFormsEnumControl(props: ControlProps): object & DispatchPropsOfControl
  • Provides bindings for 'Control' elements which resolve to 'enum' schema elements.

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

    Parameters

    Returns object & DispatchPropsOfControl

Const useJsonFormsLayout

  • Provides bindings for 'Layout' elements, e.g. VerticalLayout, HorizontalLayout, Group.

    Access bindings via the provided reactive 'layout' object.

    Parameters

    Returns object

    • layout: object

Const useJsonFormsMasterListItem

  • useJsonFormsMasterListItem(props: OwnPropsOfMasterListItem): object
  • Provides bindings for list elements of a master-list-detail control setup. The element using this binding is not supposed to be registered as an own renderer but used in a more specialized control.

    Access bindings via the provided reactive 'item' object.

    Parameters

    • props: OwnPropsOfMasterListItem

    Returns object

    • item: object

Const useJsonFormsOneOfControl

  • useJsonFormsOneOfControl(props: ControlProps): object & DispatchPropsOfControl
  • Provides bindings for 'Control' elements which resolve to 'oneOf' schema elements.

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

    Parameters

    Returns object & DispatchPropsOfControl

Const useJsonFormsOneOfEnumControl

  • useJsonFormsOneOfEnumControl(props: ControlProps): object & DispatchPropsOfControl
  • Provides bindings for 'Control' elements which resolve to manually constructed 'oneOf' enums. These are used to enhance enums with label support.

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

    Parameters

    Returns object & DispatchPropsOfControl

Const useJsonFormsRenderer

  • Provides specialized bindings which can be used for any renderer. Useful for meta elements like dispatchers.

    Access bindings via the provided reactive 'renderer' object. Offers a 'refResolver' method to trigger json-schema-ref-resolver.

    Parameters

    Returns object

    • refResolver: refResolver
    • renderer: object

Generated using TypeDoc