Bootstrap
Docs HomeProduct SiteSupport
  • Introduction
  • Buttons
    • Configuration
    • Data Binding
  • Checkboxes
    • Configuration
    • Data Binding
    • Events
  • Input
    • Configuration
    • Data Binding
    • Events
    • Methods
  • Modals
    • Message
    • Error
  • Search List
    • Configuration
    • Data Binding
    • Methods
  • Select
    • Configuration
    • Data Binding
    • Events
  • Table
    • Configuration
    • Data Binding
    • Events
  • Web Components
Powered by GitBook
On this page
  1. Select

Configuration

PreviousSelectNextData Binding

Last updated 2 years ago

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 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" },
});
Data Binding