Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UseMenuProps<E, D>

Type parameters

  • E: HTMLElement = HTMLDivElement

  • D = any | undefined

Hierarchy

  • Omit<MenuProps<E, D>, "renderMenu">
    • UseMenuProps

Index

Properties

Optional focusedItem

focusedItem?: ItemId

Optional ignoreSearchByKey

ignoreSearchByKey?: boolean

Optional orientation

orientation?: MenuOrientation

Optional type

Methods

Optional onFocusItem

  • onFocusItem(id: ItemId, itemData: D): void
  • Parameters

    Returns void

Optional onKeyDown

  • onKeyDown(e: KeyboardEvent): void
  • Parameters

    • e: KeyboardEvent

    Returns void

Optional onSelectItem

  • onSelectItem(id: ItemId, itemData: D): void
  • Parameters

    Returns void

Optional scrollToItem

  • scrollToItem(id: ItemId, itemData: D): void
  • Parameters

    Returns void

Generated using TypeDoc