vue-js-search

1.0.0 • Public • Published

Vue Js Search: client-side search library

This package is a wrapper of the library: https://github.com/bvaughn/js-search

Props

Prop Type Descripcion Default Required
primaryKey String Is a uuid used to identify each object, if no key is specied we add `__primaryKey` as primary key __primaryKey No
data Array The array of object used to perform the search Yes
columns Array All fields to search for. (Note: if you want to search for a deep key you should use a `.` to specify where to find the key. e.g ["user.location.city"]) [] Yes
delay String | Number Time in milliseconds used to delay the search, this is good if you have a lot of data and want to optimize the search 0 No
id String Sets the value of the id attribute of a search field No
classes String Sets the value of the class attribute of a search field No
name String Sets the value of the name attribute of a search field No
placeholder String Sets the value of the placeholder attribute of a search field No
disabled String Sets whether a search field is disabled, or not No
readonly String Sets whether the search field is read-only, or not No
autocomplete String Sets the value of the autocomplete attribute of a search field No
autofocus String Sets whether a search field should automatically get focus when the page loads (Note: to make this work you the search field should be within a `form` tag) No
maxLength String Sets the value of the maxlength attribute of a search field No
pattern String Sets the value of the pattern attribute of a search field No
size String Sets the value of the size attribute of the search field No

Package Sidebar

Install

npm i vue-js-search

Weekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • dannyfeliz