Form for editing discovery services on the discovery service configuration tab. Includes the same form as other services but an addition section with a list of libraries and their registration statuses and buttons to register them.

Hierarchy

Constructors

Properties

context: {
    registerLibrary: ((library: any, registration_stage: any) => void);
}

If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType. Should be used with type annotation or static contextType.

static contextType = MyContext
// For TS pre-3.7:
context!: React.ContextType<typeof MyContext>
// For TS 3.7 and above:
declare context: React.ContextType<typeof MyContext>

See

https://react.dev/reference/react/Component#context

Type declaration

  • registerLibrary: ((library: any, registration_stage: any) => void)
      • (library: any, registration_stage: any): void
      • Parameters

        • library: any
        • registration_stage: any

        Returns void

props: Readonly<ServiceEditFormProps<CollectionsData>> & Readonly<{
    children?: ReactNode;
}>
refs: {
    [key: string]: ReactInstance;
}

Type declaration

  • [key: string]: ReactInstance
state: Readonly<ServiceEditFormState>
contextType?: Context<any>

If set, this.context will be set at runtime to the current value of the given Context.

Usage:

type MyContext = number
const Ctx = React.createContext<MyContext>(0)

class Foo extends React.Component {
static contextType = Ctx
context!: React.ContextType<typeof Ctx>
render () {
return <>My context's value: {this.context}</>;
}
}

See

https://react.dev/reference/react/Component#static-contexttype

contextTypes: {
    registerLibrary: Requireable<((...args: any[]) => any)>;
} = ...

Type declaration

  • registerLibrary: Requireable<((...args: any[]) => any)>

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 a component is mounted. Setting state here will trigger re-rendering.

    Returns void

  • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

    Returns void

  • Parameters

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

    Returns void

  • Parameters

    Returns {
        extraFields: any[];
        nonRequiredFields: any[];
        requiredFields: any[];
    }

    • extraFields: any[]
    • nonRequiredFields: any[]
    • requiredFields: any[]
  • 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

    Returns boolean

Generated using TypeDoc