Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ maxMatches | `Number` | 10 | Maximum amount of list items to appear.
minMatchingChars | `Number` | 2 | Minimum matching characters in query before the typeahead list appears
prepend | `String` | | Text to be prepended to the `input-group`
append | `String` | | Text to be appended to the `input-group`
disabled | `Boolean` | false | Enable or disable input field

### Events
Name | Description
Expand Down
5 changes: 5 additions & 0 deletions src/components/VueBootstrapTypeahead.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
:placeholder="placeholder"
:aria-label="placeholder"
:value="inputValue"
:disabled="disabled"
@focus="isFocused = true"
@blur="handleBlur"
@input="handleInput($event.target.value)"
Expand Down Expand Up @@ -68,6 +69,10 @@ export default {
value: {
type: String
},
disabled: {
type: Boolean,
default: false
},
data: {
type: Array,
required: true,
Expand Down