From 1bb1616c8b7088fe19b7003534ebfa7b76904885 Mon Sep 17 00:00:00 2001 From: Daniel Nauck Date: Mon, 8 Dec 2014 13:58:26 +0100 Subject: [PATCH] Add initial readme --- README.md | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..00899a4 --- /dev/null +++ b/README.md @@ -0,0 +1,74 @@ +## Angular Advanced Searchbox +[![Build Status](https://travis-ci.org/dnauck/angular-advanced-searchbox.png?branch=master)](https://travis-ci.org/dnauck/angular-advanced-searchbox) + +A directive for AngularJS providing a advanced visual search box. + +### [DEMO](http://dnauck.github.io/angular-advanced-searchbox/) + +### Usage + +Include with bower + +```sh +bower install angular-advanced-searchbox +``` + +Load the javascript and css and declare your Angular dependency + +```html + + +``` + +```js +angular.module('myModule', ['angular-advanced-searchbox']); +``` + +Then in your view + +```html + + +``` + +The `angular-advanced-searchbox` directive uses an external template stored in +`angular-advanced-searchbox.html`. Host it in a place accessible to +your page and set the `template-url` attribute. Note that the `url` +param can be a scope variable as well as a hard-coded string. + +### Benefits + +* Handles free text search and/or parameterized searches +* Provides suggestions on available search parameters +* Easy to use with mouse or keyboard +* Model could easily be used as ```params``` for Angular's ```$http``` API +* Twitter Bootstrap compatible markup +* Works perfectly together with [angular-paginate-anything](https://github.com/begriffs/angular-paginate-anything) (use ```ng-model``` as ```url-params```) + +### Directive Attributes + + + + + + + + + + + + + + + + + + + + + + +
NameDescription
ng-modelSearch parameters as object that could be used as params with Angular's $http API.
parametersList of available parameters to search for.
placeholderspecifies a short hint in the search box