Configuration

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

Properties

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 }
});

Last updated