UNPKG

@docsvision/webclient

Version:

Type definitions for DocsVision WebClient scripts and extensions.

42 lines (41 loc) 1.65 kB
import React from "react"; /** @internal */ export interface ISimpleItemViewContentProps { className?: string; /** Is disabled */ disabled?: boolean; tabIndex?: number; /** Current element's id */ id?: string; /** Focused element's id */ focusedId?: string; dataTestid?: string; /** Get wrapper of el (e.g. to find siblings) */ getNodeEl?: (el: HTMLElement) => HTMLElement; /** Finds el in wrapper */ findElInNode?: (node: HTMLElement) => HTMLElement; /** On move to component children */ onMoveForward?: () => void; onSelectSibling?: (mode: 'prev' | 'next') => void; onSelect?: () => void; onClick?: (ev: React.MouseEvent<any>) => void; onFocus?: (ev: React.FocusEvent<any>) => void; onKeyDown?: (ev: React.KeyboardEvent<unknown>) => boolean; onDoubleClick?: (ev: React.MouseEvent<unknown>) => boolean; primaryAction: "moveForward" | "select"; } /** @internal */ export declare class SimpleItemViewContent extends React.Component<ISimpleItemViewContentProps, undefined> { protected el: HTMLElement; protected getNodeEl: () => HTMLElement; protected findElInNode: (node: HTMLElement) => HTMLElement; protected onKeyDownDefault: (ev: React.KeyboardEvent<unknown>) => void; protected onKeyDown: (ev: any) => void; protected onClick: (ev: any) => void; protected onFocus: (ev: any) => void; protected onDoubleClickDefault: (ev: any) => void; protected onDoubleClick: (ev: any) => void; componentDidMount(): void; UNSAFE_componentWillReceiveProps(nextProps: ISimpleItemViewContentProps): void; render(): JSX.Element; }