Class ZetaDropdownMenuButton

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

Hierarchy

  • FormFieldInterface<this> & LitElement<this> & ContourableInterface<this> & FlavoredInterface<this> & SizeInterface<this>
    • ZetaDropdownMenuButton

Other

  • Returns ZetaDropdownMenuButton

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

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

disabled: boolean
droppable: ZetaDroppable
flavor: Flavor
icon: string = "chevron_left"
indeterminate: boolean
input: HTMLInputElement
internals: ElementInternals
items: ZetaDropdownItem[] = ...

Array of items to populate the dropdown

name: string = "default"

The name of the dropdown menu button for form control

open: boolean = false

Controls the state of the dropdown menu.

required: boolean
rounded: boolean
size: "small" | "medium" | "large"
type: InputType = "text-dropdown"

The type of dropdown.

  • "text-dropdown" - A dropdown with a default dropdown buttons.
  • "checkbox-dropdown" - A dropdown with checkboxes.
  • "radio-dropdown" - A dropdown with radio buttons.
value: string
styles: CSSResultGroup[] = ...

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