1.0.134 • Published 16 days ago

@danielgindi/selectbox v1.0.134

Weekly downloads
94
License
MIT
Repository
github
Last release
16 days ago

@danielgindi/selectbox

A full featured selectbox and drop down.

  • Virtual list (can show a list with millions of items)
  • Live search right there in the box
  • Single or multi mode
  • Tags (items in the search box)
  • Custom item rendering
  • Variable height items
  • Highly configurable
  • No dependency on any ui framework
  • Can work in any framework or in vanilla js
  • Has existing Vue bindings
  • The droplist part can be used separately for floating menus etc.

This is a real good component, which is the product of evolution over years. Until I sat down one day and refactored it into one cool thing.
I really hope to get this documented so everyone can enjoy it.

Installing

  • adding to package.json: npm i --save @danielgindi/selectbox
  • vanilla js:
    import { SelectBox, DropList } from '@danielgindi/selectbox';
  • vuejs:
    import { SelectBox, DropList } from '@danielgindi/selectbox/vue';
  • add the scss:
    @import '@danielgindi/selectbox/scss/droplist';
    @import '@danielgindi/selectbox/scss/selectbox'; /* depends on droplist css */
  • or the compiled css:
    @import '@danielgindi/selectbox/css/droplist';
    @import '@danielgindi/selectbox/css/selectbox'; /* depends on droplist css */

Example

You are welcome to open a PR and add examples, docs, and demo pages :-)

Api

You are welcome to open a PR and add some api docs :-)

Vite

When using with Vite - you'll need to add this optimizeDeps to vite.config.js:

optimizeDeps: {
  include: [
    'fast-deep-equal',
  ],
},

Otherwise, Vite will complain about fast-deep-equal entry point.

Me

  • Hi! I am Daniel Cohen Gindi. Or in short- Daniel.
  • danielgindi@gmail.com is my email address.
  • That's all you need to know.

Help

If you want to help, you could:

  • Actually code, and issue pull requests
  • Test the library under different conditions and browsers
  • Create more demo pages
  • Spread the word
  • Donate

License

All the code here is under MIT license. Which means you could do virtually anything with the code. I will appreciate it very much if you keep an attribution where appropriate.

The MIT License (MIT)

Copyright (c) 2013 Daniel Cohen Gindi (danielgindi@gmail.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1.0.134

16 days ago

1.0.133

23 days ago

1.0.132

24 days ago

1.0.131

27 days ago

1.0.130

27 days ago

1.0.129

27 days ago

1.0.128

27 days ago

1.0.127

27 days ago

1.0.126

27 days ago

1.0.123

27 days ago

1.0.125

27 days ago

1.0.124

27 days ago

1.0.122

3 months ago

1.0.121

4 months ago

1.0.120

5 months ago

1.0.118

5 months ago

1.0.117

5 months ago

1.0.119

5 months ago

1.0.116

5 months ago

1.0.107

9 months ago

1.0.106

9 months ago

1.0.109

9 months ago

1.0.108

9 months ago

1.0.110

9 months ago

1.0.112

6 months ago

1.0.111

6 months ago

1.0.114

6 months ago

1.0.113

6 months ago

1.0.115

6 months ago

1.0.103

1 year ago

1.0.102

1 year ago

1.0.105

1 year ago

1.0.104

1 year ago

1.0.101

1 year ago

1.0.100

1 year ago

1.0.99

1 year ago

1.0.91

1 year ago

1.0.95

1 year ago

1.0.94

1 year ago

1.0.93

1 year ago

1.0.92

1 year ago

1.0.98

1 year ago

1.0.97

1 year ago

1.0.96

1 year ago

1.0.79

1 year ago

1.0.78

1 year ago

1.0.80

1 year ago

1.0.84

1 year ago

1.0.83

1 year ago

1.0.82

1 year ago

1.0.81

1 year ago

1.0.88

1 year ago

1.0.87

1 year ago

1.0.86

1 year ago

1.0.85

1 year ago

1.0.89

1 year ago

1.0.90

1 year ago

1.0.77

1 year ago

1.0.76

1 year ago

1.0.75

1 year ago

1.0.73

2 years ago

1.0.72

2 years ago

1.0.71

2 years ago

1.0.74

2 years ago

1.0.62

2 years ago

1.0.61

2 years ago

1.0.66

2 years ago

1.0.65

2 years ago

1.0.64

2 years ago

1.0.63

2 years ago

1.0.69

2 years ago

1.0.68

2 years ago

1.0.67

2 years ago

1.0.70

2 years ago

1.0.60

2 years ago

1.0.59

2 years ago

1.0.58

2 years ago

1.0.57

2 years ago

1.0.55

2 years ago

1.0.54

2 years ago

1.0.53

2 years ago

1.0.56

2 years ago

1.0.51

2 years ago

1.0.52

2 years ago

1.0.40

2 years ago

1.0.44

2 years ago

1.0.43

2 years ago

1.0.42

2 years ago

1.0.41

2 years ago

1.0.48

2 years ago

1.0.47

2 years ago

1.0.46

2 years ago

1.0.45

2 years ago

1.0.49

2 years ago

1.0.50

2 years ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.37

3 years ago

1.0.33

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.30

3 years ago

1.0.27

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.19

3 years ago

1.0.20

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.9

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago