Skip to content

Conversation

mykeels
Copy link

@mykeels mykeels commented Jan 22, 2018

I understand this was written for a blog article, however it has been really useful and I'd like to add these functionalities:

  • added string-compare to support case-insensitive and fuzzy comparisons
  • removed redundant Hello.vue
  • removed babel stage-2 because .env makes it redundant
  • added Usage section in README.md
  • used classes instead of inline-styles in component
  • added refs to enable access from the global scope
  • added limit, placeholder and threshold props
  • updated the "main" property in package.json to export the Autocomplete.vue component

@mykeels
Copy link
Author

mykeels commented Jan 22, 2018

Sample Usage:

import VueComplete from 'v-complete'

Vue.use('v-complete', VueComplete)
<v-complete
  :suggestions="[
    { 'name': 'Bangladesh', 'description': 'Bangladesh' },
    { 'name': 'Lagos', 'description': 'Lagos' }
  ]"
  :limit="5"
  :threshold="0.3"
  value="Lagos"
  placeholder="Select a City"></v-complete>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant