0.0.8 • Published 6 years ago
@rei-co-op/cedar-search v0.0.8
A composition of cdr-input
and cdr-button
that gives you a simple search box. Passes all other attributes and events to cdr-input
.
Events
Name | Type | Description | |
---|---|---|---|
input | String | Current input value. Fires while typing. |
Examples
Standard
var searchTerm = '';
function runSearch() {
console.log('Searching');
}
<form>
<cdr-search v-model="searchTerm" :click="runSearch"></cdr-search>
<p>Entered: {{searchTerm}}</p>
</form>
Bare
var searchTerm = '';
function runSearch() {
console.log('Searching');
}
<form>
<cdr-search v-model="searchTerm" :click="runSearch" bare></cdr-search>
<p>Entered: {{searchTerm}}</p>
</form>