@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"

    The flavor of the component determines the visual style of the component.

    "primary"
    

    Supported values for flavor:

    • "primary" - Blue background.
    • "positive" - Green background.
    • "negative" - Red background.
    • "outline" - Primary outline only.
    • "outline-subtle" - Grey outline only.
    • "text" - Primary text only.
    icon: ZetaIconName = "more_vertical"

    The icon to be displayed on the button

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

    Array of action items

    leadingIcon: null | ZetaIconName = null

    Leading icon of button. Full list of icons can be found at Zeta Icons.

    name?: string

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

    open: boolean = false

    Controls the state of the dropdown menu.

    shape: "rounded" | "sharp" | "full"
    size: "small" | "medium" | "large"
    trailingIcon: null | ZetaIconName = null

    Trailing icon of button. Full list of icons can be found at Zeta Icons.

    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