1.3.2 • Published 1 year ago

handsontable-multi-select v1.3.2

Weekly downloads
241
License
MIT
Repository
github
Last release
1 year ago

handsontable-multi-select

Handsontable editor and renderer for a multi select input using chosen.js, no jQuery.

Installation

yarn add handsontable-multi-select

Usage

Just import the editor class and renderer function from handsontable-multi-select package, and you're good to go.

Options can be passed as an array or as a callback function as below.

import { MultiSelectEditor, MultiSelectRenderer } from 'handsontable-multi-select'

new Handsontable(el, {
  ...,
  columns: [
    {
      editor: MultiSelectEditor,
      renderer: MultiSelectRenderer,
      select: {
        config: {
          separator: ';',
          valueKey: 'value',
          labelKey: 'label'
        },
        options: [
          { value: 'SE', label: 'Sweden' },
          ...
        ]
        --- OR ---
        options (source, process) {
          return new Promise((resolve) => setTimeout(resolve, 500, [ ... ]))
        }
      }
    }
  ]
})

We also provide default styles for the selector in CSS and LESS that are adapted to handsontable.

handsontable-multi-select/dist/css/handsontable-multi-select.css or handsontable-multi-select/lib/multi-select.less

You can view a demo of the plugin by cloning this repository and yarn demo

To do

  • testing for editor

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

1.3.2

1 year ago

1.3.1

1 year ago

0.27.28

2 years ago

0.27.27

2 years ago

0.27.26

4 years ago

0.27.25

4 years ago

0.27.24

5 years ago

0.27.23

5 years ago

0.27.22

5 years ago

0.27.21

5 years ago

0.27.19

5 years ago

0.27.20

5 years ago

0.27.18

5 years ago

0.27.17

5 years ago

0.27.16

5 years ago

0.27.15

5 years ago

0.27.14

5 years ago

0.27.13

5 years ago

0.27.12

5 years ago

0.27.11

5 years ago

0.27.10

5 years ago

1.3.0

5 years ago

0.27.9

5 years ago

0.27.8

6 years ago

0.27.7

6 years ago

1.2.1

6 years ago

0.27.6

6 years ago

0.27.5

6 years ago

1.2.0

6 years ago

0.27.4

6 years ago

0.27.3

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

0.27.2

6 years ago

0.27.1

6 years ago

0.27.0

6 years ago

1.0.0

6 years ago