Configuration
Use the following configuration options to bind the Bootstrap select component.
Properties
Name
Description
all
An object that represents selecting all values from the list. This value should match the datamap
schema
datamap
Used to bind data to the component. See Data Binding for details.
The following example binds the Bootstrap select component specifying the all
value to represent selecting all values.
const users = [
{ value: "all", label: "All Users" },
{ value: "jkratz", label: "Jeff Kratz" },
{ value: "jross", label: "Jeff Ross" }
]
const select = new wire.bsSelect().render("#select", {
data: users,
all: { value: "all", label: "All Users" },
});
Last updated