Skip to content

Commit

Permalink
docs(readme) 1.7 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenjennings authored Oct 11, 2018
1 parent b37f7d3 commit fd68510
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ Place the component into your app!
```html
<vue-autosuggest
:suggestions="[{data:['Frodo', 'Samwise', 'Gandalf', 'Galadriel', 'Faramir', 'Éowyn']}]"
:on-selected="selectHandler"
:input-props="{id:'autosuggest__input', onInputChange: onInputChange, placeholder:'Do you feel lucky, punk?'}"
@selected="selectHandler"
@click="clickHandler"
>
<template slot-scope="{suggestion}">
Expand All @@ -119,7 +119,7 @@ Advanced usage:
:suggestions="filteredOptions"
@focus="focusMe"
@click="clickHandler"
:on-selected="onSelected"
@selected="onSelected"
:render-suggestion="renderSuggestion"
:get-suggestion-value="getSuggestionValue"
:input-props="{id:'autosuggest__input', onInputChange: this.onInputChange, placeholder:'Do you feel lucky, punk?'}"/>
Expand Down Expand Up @@ -267,6 +267,7 @@ vue-autosuggest does not have an opinion about how you render the items in your
| [`section-configs`](#sectionConfigsProp) | Object | | Define multiple sections `<input>`. |
| [`render-suggestion`](#renderSuggestion) | Function | | Tell vue-autosuggest how to render inside the `<li>` tag. Overrides what is inside the default suggestion template slot. |
| [`get-suggestion-value`](#getSuggestionValue) | Function | | Tells vue-autosuggest what to put in the `<input/>` value |
| `@selected` | Function || suggestion select handler. equivalent to sectionConfigs `on-selected` but for all items |
| `component-attr-id-autosuggest` | String | | `id` of entire component |
| `component-attr-class-autosuggest-results-container` | String | | `class` of container of results container |
| `component-attr-class-autosuggest-results` | String | | `class` of results container |
Expand Down

0 comments on commit fd68510

Please sign in to comment.