sp-picker

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 value value string ''

Slots

Section titled Slots
Name Description description The description content for the Picker label The placeholder content for the Picker tooltip Tooltip to to be applied to the the Picker Button default slot menu items to be listed in the Picker

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