Perseus
    Preparing search index...

    Interface ServerItemRendererComponent

    interface ServerItemRendererComponent {
        _currentFocus: FocusPath;
        _fullyRendered: boolean;
        _handleFocusChange: (newFocus: FocusPath, oldFocus: FocusPath) => void;
        blurTimeoutID: number | null | undefined;
        context: I18nContextType;
        hintsRenderer: any;
        questionRenderer: Renderer;
        setAssetStatus: (assetKey: string, status: boolean) => void;
        userInput: UserInputMap;
        _onRendererBlur(blurPath: FocusPath): void;
        _setCurrentFocus(newFocus: FocusPath): void;
        blur(): void;
        blurPath(path: FocusPath): void;
        componentDidMount(): void;
        componentDidUpdate(): void;
        componentWillUnmount(): void;
        focus(): boolean | null | undefined;
        focusPath(path: FocusPath): void;
        getDOMNodeForPath(path: FocusPath): Element | Text | null | undefined;
        getInputPaths(): readonly FocusPath[];
        getNumHints(): number;
        getPromptJSON(): RendererPromptJSON;
        getSerializedState(): SerializedState;
        getUserInput(): UserInputMap;
        getWidgetIds(): readonly string[];
        maybeCallOnRendered(): void;
        render(): ReactNode;
    }

    Hierarchy

    • Component<Props, State>
      • ServerItemRendererComponent

    Implements

    Index

    Properties

    _currentFocus: FocusPath
    _fullyRendered: boolean
    _handleFocusChange: (newFocus: FocusPath, oldFocus: FocusPath) => void = ...
    blurTimeoutID: number | null | undefined

    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>
    hintsRenderer: any
    questionRenderer: Renderer
    setAssetStatus: (assetKey: string, status: boolean) => void = ...
    userInput: UserInputMap

    Methods

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

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

      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