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

https://github.com/fabricelements/fabric-algolia

Algolia search for polymer projects
https://github.com/fabricelements/fabric-algolia

algolia polymer search web-component web-components

Last synced: about 1 month ago
JSON representation

Algolia search for polymer projects

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/FabricElements/fabric-algolia.svg?branch=master)](https://travis-ci.org/FabricElements/fabric-algolia)
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/FabricElements/fabric-algolia)

## \

`fabric-algolia` is a [Polymer 3](http://polymer-project.org) Algolia search component.

## Installation

Install `fabric-algolia` with npm

```shell
$ npm install FabricElements/fabric-algolia --save
```

## Usage

Import it into the `` of your page

```html

```

### Example: basic usage

```html

```

* `application-id` (string) - Your Algolia Application ID.
* `api-key` (string) - Your Algolia API key.
* `index` (string) - Your Algolia records.
* `query` (string) - Fields that should be include in the response.
* `response` (object) - Algolia's response.

> See [demo file](./demo/index.html) for examples.

### Other attributes

* `settings` (object) - Search settings.
* `error` (object) - Error.

### Events

* `error-changed` - Fired when the `error` property has changed.
* `response-changed` - Fired when the `response` property has changed.

## Contributing

Please check [CONTRIBUTING](./CONTRIBUTING.md).

## License

Released under the [BSD 3-Clause License](./LICENSE.md).