0.1.12 • Published 3 years ago

@startinblox/kldb-search-box v0.1.12

Weekly downloads
120
License
MIT
Repository
-
Last release
3 years ago

Coopedia Search box component

<coopedia-search-box> displays a search box similar to the one you could find on your knowledge base instance.

Warning This component is used to filter results of another component : <coopedia-search-results>. You need to implement both components and link them with a script.

When we made this component we thought that it was relevant to separate it in two parts : the filters and the results in order to get more freedom in the implementation. So we've added a script to link them. We are looking for a smarter solution. If you have any suggestions for improvement, we would be happy to hear from you :)

Try the demo

To launch the demo, please run at the root of the component :

npm run serve

How to use

<html>
<head>
  <!-- import the Coopedia Search Box component -->
  <script type="module" src="https://unpkg.com/@startinblox/kldb-search-box"></script>
  <!-- import the Coopedia Result Search component -->
  <script type="module" src="https://unpkg.com/@startinblox/kldb-search-results"></script>
  <!-- import the script to connect the two components -->
  <script src="https://unpkg.com/@startinblox/kldb-search-box@0.1.1/js/connector-script.js"></script>
</head>

<body>
  <!-- Use Coopedia Search Box component -->
  <coopedia-search-box
    data-src="[url]">
  </coopedia-search-box>

  <!-- Use Coopedia Result Search component -->
  <coopedia-search-results
    data-src="[url]">
  </coopedia-search-results>
</body>
</html>

Parameters

NameDefaultDescription
data-srcundefinedURL of source to display. For exemple : https://api.coopstarter.happy-dev.fr

Notes

This component was made for The Coopstarter projet by Balessan and Alice.

Funding

EULOGO

This software has been co-funded by the European Union. The contents of this software are the sole responsibility of Cooperatives Europe and can in no way be taken to reflect the views of the European Union.

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago