CIA Compliance Manager API Documentation - v1.1.6
    Preparing search index...

    Variable handleArrowKeyNavigation

    handleArrowKeyNavigation: (
        event: KeyboardEvent,
        currentIndex: number,
        totalItems: number,
        onIndexChange: (newIndex: number) => void,
        orientation?: "horizontal" | "vertical",
    ) => void

    Type Declaration

      • (
            event: KeyboardEvent,
            currentIndex: number,
            totalItems: number,
            onIndexChange: (newIndex: number) => void,
            orientation?: "horizontal" | "vertical",
        ): void
      • Handle keyboard navigation for arrow keys in a list or grid

        Parameters

        • event: KeyboardEvent

          Keyboard event

        • currentIndex: number

          Current focused item index

        • totalItems: number

          Total number of items

        • onIndexChange: (newIndex: number) => void

          Callback when index changes

        • orientation: "horizontal" | "vertical" = 'vertical'

          List orientation (horizontal or vertical)

        Returns void