Rezi
    Preparing search index...

    Function getPrevOptionIndex

    • Get the previous selectable option index (for ArrowUp). Skips disabled options.

      Parameters

      • currentIndex: number

        Current selected index

      • options: readonly Readonly<{ disabled?: boolean; label: string; value: string }>[]

        Available options

      • wrapAround: boolean = true

        Whether to wrap from first to last

      Returns number

      Previous selectable index, or current if none found