Class BaseFormGroupAbstract

Displays a grouped form (Form with many sections like tabs) *

Hierarchy

Constructors

Properties

context: MetaForm
props: Readonly<ISchema>
refs: {
    [key: string]: ReactInstance;
}

Type declaration

  • [key: string]: ReactInstance
sectionFields: {
    fields: undefined | IField[];
    meta: IMeta;
    name: string;
}[]
state: IState
tabFields: IField[]
contextType: Context<MetaForm> = FormContext

Methods

  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    • prevProps: Readonly<ISchema>
    • prevState: Readonly<{}>
    • Optional snapshot: any

    Returns void

  • Parameters

    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    • prevProps: Readonly<ISchema>
    • prevState: Readonly<{}>

    Returns any

  • Type Parameters

    • K extends never

    Parameters

    • state: null | {} | ((prevState: Readonly<{}>, props: Readonly<ISchema>) => null | {} | Pick<{}, K>) | Pick<{}, K>
    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    • nextProps: Readonly<ISchema>
    • nextState: Readonly<{}>
    • nextContext: any

    Returns boolean

Generated using TypeDoc