Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

techpines/bone.io-textsearch

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /