Pro Pack
Docs HomeProduct SiteSupport
  • Introduction
  • Installation
  • Chart.js
    • Configuration
    • Data Binding
    • Data Labels
  • Dataset Filter Labels
    • Installation
    • Configuration
    • Data Binding
  • DataTables
    • Configuration
    • Data Binding
    • Events
    • Methods
  • Date Range Picker
    • Configuration
    • Data Binding
    • Methods
  • iCheck
    • List
      • Configuration
      • Data Binding
      • Events
    • Filter
      • Configuration
      • Data Binding
  • Select2
    • Configuration
    • Data Binding
    • Events
    • Methods
  • Sparklines
    • Installation
    • Configuration
    • Data Binding
  • Toastr
    • Configuration
  • Web Frameworks
Powered by GitBook
On this page
  • Properties
  • Select2

Was this helpful?

  1. Select2

Configuration

Use the following configuration options to bind the Select2 for WireBootstrap component.

Properties

Name

Default

Description

default

All

Default value in the select box when it loads. Use a single text label or the datamap.id field name. Set to $first to have the first value in the list selected by default.

datamap

loading

false

Determines whether the loading spinner is shown over the component when processing its data promise.

multiRemoveDefault

false

Removes first/default selection (ala All) when another selection is made.

search

false

Allow the select list to be searched

select2

typeAhead

false

Select2

The following example uses the native Select2 configuration to turn on multi-select functionality. It also tells the component not to display a loading spinner when waiting for new data.

const select2 = new wire.select2().render("#select", {
    ...
    loading: false,
    select2: { multiple: true }
});
PreviousSelect2NextData Binding

Last updated 3 years ago

Was this helpful?

Used to bind data to the component. See for details.

The pass-through for Select2. See for an example.

Turn on smart type-ahead for the select list. Note, the must be using a WireBootstrap for this functionality.

Data Binding
data binding
data set
native configuration
Select2