backform-select2

1.0.1 • Public • Published

backform-select2

Add ability to render select2 powered select inputs to your Backform forms.

Installation

npm install select2 backform-select2

Usage

In your Backform field definiton you can use Backform.Select2Control as a control. Like this:

var fields = [
    ...
    {
      name: 'countries',
      label: 'Countries',
      control: Backform.Select2Control
    }
    ...
];

You can pass select2 options with the select2 key:

{
  name: 'countries',
  select2: {
    multiple: true
  }
  label: 'Countries',
  control: Backform.Select2Control
}

Package Sidebar

Install

npm i backform-select2

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • cvural