Skip to content

SamFromDaUk/jmvc-component-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jmvc-component-search

A search component for JMVC 3.2.4.

API

Events emitted

  • 'search.query' (On "keyup", or on the selection of a typeahead option if typeahead is used)

Overview

A search component which renders a text input and emits the data entered.

Key Features

  • Ultra Light-weight
  • Overridable view template
  • Built to complement Event Oriented Architecture
  • Event to get the search term from the component

Getting Started

Quick-start

$('#someElement').frogui_components_search()

'search.find': function(el, ev, data) {
    console.log('user input', data);
}

Your own view template

$('#someElement').frogui_components_search({
    template: '//userApp/views/searchOverride.ejs'
})

Options

  • minimumChar (default 3)
  • searchDelay (default 1000)
  • placeholderText (default 'Search')
  • template (.ejs file to overwrite the default)
  • typeahead (Bootstrap Typeahead options)

Additional Info

This component needs tests!

Suggestions & Questions

[email protected] [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published