This package has been deprecated

Author message:

Deprecated in favor of @rei/cdr-search

@rei-co-op/cedar-search

0.0.8 • Public • Published

A composition of cdr-input and cdr-buttonthat 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>

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @rei-co-op/cedar-search

    Weekly Downloads

    0

    Version

    0.0.8

    License

    ISC

    Last publish

    Collaborators

    • heavymedl
    • peripateticus
    • mhewson