Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tricinel/angular-facetly

Faceted search box for AngularJS
https://github.com/tricinel/angular-facetly

Last synced: about 20 hours ago
JSON representation

Faceted search box for AngularJS

Awesome Lists containing this project

README

        

angular-facetly
=============================

Enhance ordinary search boxes with the autocomplete faceted search. No jQuery.

[![Build Status](https://travis-ci.org/tricinel/angular-facetly.svg)](https://travis-ci.org/tricinel/angular-facetly)

#### Features:

* Faceted search queries
* Autocomplete for facets and facet options
* Multiple facet types, e.g. text, select, multiselect, hierarchies
* Keyboard/Mouse navigation

##### Usage:

Get the binaries of angular-facetly with any of the following ways.

```sh
bower install angular-facetly --save
```

Make sure to load the scripts in your html.
```html

```

And Inject the sortable module as dependency.

```
angular.module('myApp', ['ngFacetly']);
```

###### Html Structure:
You can also check out the [demo](./demo) folder.

```javascript
function MainController() {
var vm = this;

vm.model = {};

vm.options = {
defaultFacet: 'keywords',
placeholder: 'Search here...'
};

vm.facets = [
{
id: 'keywords',
label: 'Keywords',
type: 'text'
},
{
id: 'city',
label: 'City',
type: 'select',
options: [
{
id: 'ny',
title: 'New York'
},
{
id: 'sf',
title: 'San Francisco'
},
]
},
];

vm.doSearch = function() {
console.log(vm.model);
};
}
```

```html




```

##### Coming next

* Validation for inputs

##### License

MIT, see [LICENSE.md](./LICENSE.md).