@cnbritain/wc-search-headerdeprecated

Search header

Usage no npm install needed!

<script type="module">
  import cnbritainWcSearchHeader from 'https://cdn.skypack.dev/@cnbritain/wc-search-header';
</script>

README

wc-search-header

Search header

Settings

Key Optional Default Description
search_url True '/search' The url to post the form to
search_placeholder True 'Search' Placeholder text for the search box
search_value True '' Default value to put into the textbox
results_total True 0 Total number of search results
display_results True False Shows the results section

Themes

  • Wired

Prerequisites:

  • Node.jsbrew install node
  • Grunt - npm install -g grunt-cli
  • Other prereqs? Python? Virtualenv?

Demo:

Install dependencies:

npm install

Build the things:

npm run sass
npm run js

Python the pythons:

cd demo
virtualenv .
source bin/activate
pip install -r requirements.txt

Start the demo server:

python demo.py