2.0.0 • Published 1 year ago

tinyselect v2.0.0

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

TinySelect

Test

Tiny and zero-dependency jquery select component with ajax on demand loading and filtering. Supports jQuery versions 2 and 3

Construction options:

optiondescription
showSearchShow search box
searchCaseSensitiveIs search case sensitive (true / false)
txtLoadingText to show while loading ajax request
txtAjaxFailureText to show, if ajax loading fails
dataUrlURL where to load content. If value is not set, plugin reads content from select element
dataParserCustom function to parse data from ajax request

Usage example

$("#selectElementId").tinyselect({
	showSearch: true,
	txtLoading: "Loading..."
});

Ajax data format

Plugin expects data to be array of objects. Each object should contain attributes 'val' and 'text'. Object can also contain attributes 'selected: true', which selects the element.

Testing plugin locally

You can test the plugins demo page with included http server:

  • npm ci
  • npm run demoserver

Compiling the plugin from source

Run the following commands:

  • npm ci
  • npm run test
    • This step is optional
  • npx grunt
2.0.0

1 year ago

1.0.6

6 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago