Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MenuProps<E, D>

Type parameters

  • E: HTMLElement = HTMLDivElement

  • D = any | undefined

Hierarchy

  • MenuProps

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

Optional onKeyDown

  • onKeyDown(e: KeyboardEvent): void
  • Parameters

    • e: KeyboardEvent

    Returns void

Optional onSelectItem

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

renderMenu

  • renderMenu(props: MenuRenderProps<E, D>): null | ReactElement<any, string | JSXElementConstructor<any>>

Optional scrollToItem

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

Generated using TypeDoc