UNPKG

react-xsd-tree

Version:

This form is used to design React Material Tree using any given XSD/ISO 20022 Json object. .

40 lines (33 loc) 1.27 kB
import { default as default_2 } from 'react'; import { PropsWithoutRef } from 'react'; import { RefAttributes } from 'react'; import { RefObject } from 'react'; import { SyntheticEvent } from 'react'; export declare const ReactXsdTree: default_2.ForwardRefExoticComponent<PropsWithoutRef<ReactXsdTreeProps> & RefAttributes<ReactXsdTreeApiRef>>; declare interface ReactXsdTreeApiRef { selectItem: (event: default_2.SyntheticEvent, itemId: string) => void; } declare interface ReactXsdTreeProps { model: SchemaElement; onSelectedItemsChange?: (event: SyntheticEvent<Element, Event>, item: SchemaElement) => void; } export declare interface SchemaElement { id: string; name: string; dataType: string | null; minOccurs: string | null; maxOccurs: string | null; minLength: string | null; maxLength: string | null; pattern: string | null; fractionDigits: string | null; totalDigits: string | null; minInclusive: string | null; maxInclusive: string | null; values: string[] | null; isCurrency: boolean | null; xpath: string | null; elements: SchemaElement[]; } export declare const useReactXsdTreeViewApiRef: () => RefObject<ReactXsdTreeApiRef>; export { }