Function useJsonFormsMasterListItem

  • 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 {
        item: ComputedRef<{
            childLabelProp: string;
            disableRemove: NonNullable<undefined | boolean>;
            enabled: boolean;
            index: number;
            path: string;
            schema: NonNullable<JsonSchema>;
            selected: boolean;
            translations: ArrayTranslations;
            uischema: UISchemaElement;
            handleSelect(index): (() => void);
            removeItem(path, value): (() => void);
        }>;
    }

    • item: ComputedRef<{
          childLabelProp: string;
          disableRemove: NonNullable<undefined | boolean>;
          enabled: boolean;
          index: number;
          path: string;
          schema: NonNullable<JsonSchema>;
          selected: boolean;
          translations: ArrayTranslations;
          uischema: UISchemaElement;
          handleSelect(index): (() => void);
          removeItem(path, value): (() => void);
      }>