@zebra-fed/zeta-web
    Preparing search index...

    Class ZetaActionMenuButton

    Zeta Action Menu Button places a button that when clicked opens an action menu containing the items passed into it through the items prop.

    Hierarchy (View Summary)

    Index

    Other

    _buttonType: "text" | "icon" = "text"
    alignment?: "start" | "end" | "center"

    The alignment of the droppable relative to the action menu. Defaults start if left undefined.

    anchor: HTMLElement
    direction?: "left" | "right" | "top" | "bottom" = "bottom"

    The direction of the droppable relative to the anchor. Defaults to bottom if left undefined.

    disabled: boolean
    droppable: ZetaDroppable
    flavor: ButtonFlavor = "primary"
    icon: ZetaIconName = "more_vertical"

    The icon to be displayed on the button

    internals: ElementInternals
    items: ZetaDropdownItem[] = ...

    Array of action items

    leading?: Node[]
    name?: string

    Name for the button, used if the button is in a form.

    open: boolean = false

    Controls the state of the dropdown menu.

    rounded: boolean
    size: "small" | "medium" | "large"
    trailing?: Node[]
    type?: "reset" | "submit" | "button"

    The type of the button when used in a form

    value?: string

    The value of the name property When submitted as part of a form

    formAssociated: boolean = true
    shadowRootOptions: ShadowRootInit = ...

    rendering

    • Invoked on each update to perform rendering tasks. This method may return any value renderable by lit-html's ChildPart - typically a TemplateResult. Setting properties inside this method will not trigger the element to update.

      Returns TemplateResult<1>

    updates

    • Invoked when the element is first updated. Implement to perform one time work on the element after update.

      firstUpdated() {
      this.renderRoot.getElementById('my-text-area').focus();
      }

      Setting properties inside this method will trigger the element to update again after this update cycle completes.

      Returns void