Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Suggestions.vue #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Component supports Vue 2.1.0+ version. v-suggetions uses slot-scope based templa
| options.debounce | Integer | A delay in milliseconds between each "onInputChange" events. If unspecified, it will be ignored. Comes in handy for ajax requests. See examples. |
|options.placeholder | string | A placeholder string for search (optional) |
|options.inputClass | string | Override classnames given to the input text element (optional) |
|options.wrappingClass | string | Additional classnames given to the wrapping div of the input text element (optional) |

## Simple Example
```html
Expand Down Expand Up @@ -139,4 +140,4 @@ You can pass the `@keyDown` event to handle custom key events, e.g. hitting ente
@keyDown="onInputKeyDown"
>
</suggestions>
```
```
2 changes: 1 addition & 1 deletion src/Suggestions.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="v-suggestions">
<div class="v-suggestions" :class="extendedOptions.wrappingClass">
<input type="text" :class="extendedOptions.inputClass"
v-bind="$attrs"
v-on:keydown="onKeyDown"
Expand Down