@refinio/one.ui
    Preparing search index...
    • When an anchor is provided, aligns this popup menu to the element. Simple usage includes passing test for the menus and getting the clicked text in the callback. Extended usage includes passing the menu row content and entry id string for the callback. Visability control is aways dependent on the parent elements.

      Parameters

      • props: {
            anchor: Anchor;
            anchorOrigin?: PopoverOrigin;
            className?: string;
            disableDimensionAdjustments?: boolean;
            entries: PopupMenuEntry[];
            isVisible: boolean;
            onClose?: () => void;
            onMenuEntrySelected: (entry: string) => void;
        }
        • anchor: Anchor

          anchor element for the popup menu

        • OptionalanchorOrigin?: PopoverOrigin

          Optional. Default

        • OptionalclassName?: string

          Optional.

        • OptionaldisableDimensionAdjustments?: boolean
        • entries: PopupMenuEntry[]

          array of text or Entry information

        • isVisible: boolean

          should the menu be visible

        • OptionalonClose?: () => void

          Optional. When the component requests to be closed (example: outside click).

        • onMenuEntrySelected: (entry: string) => void

          callback for clicked menu entry

      Returns ReactElement

      • PopupMenuEntry
      • Menu onClose prop for list of full events.
      • defaultPopoverOrigin