0.27.27 • Published 5 months ago

handsontable-multi-select v0.27.27

Weekly downloads
241
License
MIT
Repository
github
Last release
5 months ago

handsontable-multi-select

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

WARNING: all 0.x.x versions are refering to old versions of handsontable. If you have the newest version, please refer to latest 1.x.x.

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'
import 'handsontable-multi-select/dist/css/handsontable-multi-select.css'

new Handsontable(el, {
  ...,
  columns: [
    {
      editor: MultiSelectEditor,
      renderer: MultiSelectRenderer,
      readOnly: false,
      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

0.27.28

5 months ago

0.27.27

11 months ago

0.27.26

3 years ago

0.27.25

3 years ago

0.27.24

3 years ago

0.27.23

3 years ago

0.27.22

3 years ago

0.27.21

3 years ago

0.27.19

3 years ago

0.27.20

3 years ago

0.27.18

3 years ago

0.27.17

4 years ago

0.27.16

4 years ago

0.27.15

4 years ago

0.27.14

4 years ago

0.27.13

4 years ago

0.27.12

4 years ago

0.27.11

4 years ago

0.27.10

4 years ago

1.3.0

4 years ago

0.27.9

4 years ago

0.27.8

4 years ago

0.27.7

4 years ago

1.2.1

4 years ago

0.27.6

4 years ago

0.27.5

4 years ago

1.2.0

4 years ago

0.27.4

4 years ago

0.27.3

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

0.27.2

4 years ago

0.27.1

4 years ago

0.27.0

4 years ago

1.0.0

4 years ago