p-multi-select
component is a versatile custom form element that facilitates the selection of multiple options. It
can be used p-multi-select
component is used within a form, it utilizes the
ElementInternals API, which has limited
browser support. For broader browser compatibility, consider using a
controlled approach instead.label
, description
, state
, message
, hideLabel
, disabled
, required
&
dropdownDirection
). The p-multi-select
offers a search field by default. When the user types in a search string, the
options are reduced by matching the options text.p-multi-select-option
component. Each option needs to have an assigned value, which can
be passed via an attribute or property and needs to be of type string. Initial selection states can only be achieved
using the value property on the p-multi-select
component (disabled
attribute.p-multi-select
utilizes the #top-layer
which enables it to be shown correctly even when used e.g. within a scroll container.Some description
No results found
<!doctype html>
<html lang="en" class="auto">
<head>
<title></title>
</head>
<body class="bg-base">
<p-multi-select name="name" label="Some Label" description="Some description">
<p-multi-select-option value="a">
Option A
</p-multi-select-option>
<p-multi-select-option value="b">
Option B
</p-multi-select-option>
<p-multi-select-option value="c">
Option C
</p-multi-select-option>
<p-multi-select-option value="d">
Option D
</p-multi-select-option>
<p-multi-select-option value="e">
Option E
</p-multi-select-option>
<p-multi-select-option value="f">
Option F
</p-multi-select-option>
</p-multi-select>
<script>
</script>
</body>
</html>