bone.io-textsearch

0.1.3 • Public • Published

Bone.io Textsearch

Get that nice "Google" style search, without the billion dollar investment.

In the browser

In the head do this:

<script src="/bone.io-textsearch.js"></script>
<script>
  bone.modules.TextSearch = bone.modules.textsearch(options)
</script>

You can pass in the following options:

  • selector - The selector that designates textsearch boxes.
  • inboundMiddleware - Inbound bone.io middleware.
  • outboundMiddleware - Outbound bone.io middleware.

Then create as many textsearch boxes as you want in your html like this:

<input type="text", data-ui="textsearch" />

In node

require('bone.io-textsearch');

// Rockout with your cock out
bone.modules.textsearch(options);

You can supply the following options:

  • search - Data route that receives two arguments data, and context.
  • inboundMiddleware - Array of inbound bone.io middleware functions.
  • outboundMiddleware - Array of outbound bone.io middleware functions.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    2
  • 0.1.2
    1
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i bone.io-textsearch

Weekly Downloads

5

Version

0.1.3

License

none

Last publish

Collaborators

  • brad@techpines.com