SheetXL - v1.0.2
    Preparing search index...

    Interface PivotButtonConfigProps

    The pivot table button configuration.

    Rides the shared propsCellRender channel, as the column buttons' does. Consumed by the pivot layer (PivotLayer), not the text cell renderer.

    interface PivotButtonConfigProps {
        onPivotButtonMouseDown?: (
            event: MouseEvent<HTMLDivElement, MouseEvent>,
            fields: readonly IField[],
        ) => void;
    }
    Index
    onPivotButtonMouseDown?: (
        event: MouseEvent<HTMLDivElement, MouseEvent>,
        fields: readonly IField[],
    ) => void

    Callback for when a pivot table's field dropdown has been pressed.

    Type Declaration

      • (event: MouseEvent<HTMLDivElement, MouseEvent>, fields: readonly IField[]): void
      • Parameters

        • event: MouseEvent<HTMLDivElement, MouseEvent>

          The mouse event (its currentTarget anchors the menu)

        • fields: readonly IField[]

          The fields the button is for: one, or a compact header's row or column fields

        Returns void