sp-action-menu

Overview API Changelog

API

Attributes and Properties

Section titled Attributes and Properties
Property Attribute Type Default Description disabled disabled boolean false focused focused boolean false forcePopover force-popover boolean false Forces the Picker to render as a popover on mobile instead of a tray. icons icons 'only' | 'none' | undefined invalid invalid boolean false label label string | undefined open open boolean false pending pending boolean false Whether the items are currently loading. pendingLabel pending-label string 'Pending' Defines a string value that labels the Picker while it is in pending state. placement placement "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" 'bottom-start' quiet quiet boolean false readonly readonly boolean false selects selects undefined | 'single' undefined By default `sp-action-menu` does not manage a selection. If you'd like for a selection to be held by the `sp-menu` that it presents in its overlay, use `selects="single" to activate this functionality. staticColor static-color 'white' | 'black' | undefined value value string ''

Slots

Section titled Slots
Name Description default slot menu items to be listed in the Action Menu description The description content for the Picker icon The icon to use for the Action Menu label The label to use for the Action Menu label-only The label to use for the Action Menu (no icon space reserved) tooltip Tooltip to be applied to the Action Button

Events

Section titled Events
Name Type Description change Event Announces that the `value` of the element has changed scroll Event sp-opened Event Announces that the overlay has been opened