SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface TaskPaneEntry

    interface TaskPaneEntry {
        component: ComponentType<TaskPaneProps<any, any>>;
        componentCommandButton?: ComponentType<CommandButtonProps<any, any, void>>;
        componentTitle?: ComponentType<TaskPaneTitleProps>;
        contributionPoints?: string[];
        keepMounted?: boolean;
        key: string;
        createCommand?(taskPaneArea: ITaskPaneArea): ICommandDefinition;
        getIcon?(): | string
        | ReactElement<unknown, string | JSXElementConstructor<any>>
        | undefined;
        getTitle(): string;
    }
    Index
    component: ComponentType<TaskPaneProps<any, any>>

    The task pane component.

    This is rendered as a React element (<Component {...props}/>), so it is a real component: hooks are allowed, and it participates in reconciliation like any other component. The host's ref is delivered as a regular prop (TaskPaneProps.ref, React 19 style) — forward it to the pane's root element.

    componentCommandButton?: ComponentType<CommandButtonProps<any, any, void>>

    Optional component for a button that can be placed in the command bar.

    If not provided a default button will be created. Rendered as a React element — hooks are allowed.

    componentTitle?: ComponentType<TaskPaneTitleProps>

    Optional component to render a custom title for the task pane.

    Rendered as a React element — hooks are allowed.

    contributionPoints?: string[]

    The command paths to use to open the task pane.

    • Must not change. If this is not provided the task pane can only be opened programmatically.
    keepMounted?: boolean

    If true, the pane stays mounted (hidden with display: none) while another pane is active, instead of unmounting on switch. Opt in for panes that are expensive or fragile to (re)mount — the script editor, whose Monaco/CDN-loader/worker setup is built around a single mount lifecycle (remounting it re-runs the AMD loader shim + global juggling and re-creates the language workers, which fails on the way back). Leave unset for ordinary panes so they keep the default unmount-on-hide behavior (state resets, memory freed).

    false
    
    key: string

    The unique key for the task pane.

    • Must not change.
    • Parameters

      Returns ICommandDefinition

    • The icon to display to identify the task pane.

      Returns string | ReactElement<unknown, string | JSXElementConstructor<any>> | undefined

      This can be either a string (iconKey) or a React element.

    • The title to display to identify the task pane.

      Returns string