Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EnumContextMenu<E, K>

Type parameters

  • E: number

  • K: string

Hierarchy

  • EnumContextMenu

Index

Constructors

constructor

  • Parameters

    • e: {}
    • Optional translator: undefined | ((e: E) => Translation)

    Returns EnumContextMenu

Methods

setSort

  • setSort(sort: EnumSort | ((a: E, b: E) => number)): this
  • Parameters

    • sort: EnumSort | ((a: E, b: E) => number)

    Returns this

setTranslator

  • setTranslator(translator: (e: E) => Translation): this
  • Parameters

    Returns this

waitForChoice

  • waitForChoice(): Promise<E | undefined>
  • Returns Promise<E | undefined>

Generated using TypeDoc