@kendraio/image-tagger

0.1.2 • Public • Published

KendraioImageTagger

Kendraio Image Tagger component wrapped as a web component using Angular Elements. Can be used independently of Angular.

Work in progress, TODO:

  • expose the tag preview component
  • expose default settings (tag size, etc)

Installation

To install from NPM use:

npm install --save @kendraio/image-tagger

Or, include the compiled JS directly into your HTML by adding a script tag:

<script src="https://unpkg.com/@kendraio/image-tagger/main-es2015.js" type="module"></script>

Usage

Add the component to your HTML markup:

<kendraio-image-tagger src="/assets/example-image.jpg" alt="Example Image"></kendraio-image-tagger>

And then listen to the tagsChanged event to get the updated list of tags:

  const tagger = document.querySelector('kendraio-image-tagger');
  tagger.addEventListener('tagsChanged', (event) => {
    console.log(`tagsChanged:`, event.detail);
  });

You can set the default list of tags by setting the tags property on the custom element.

Readme

Keywords

none

Package Sidebar

Install

npm i @kendraio/image-tagger

Weekly Downloads

4

Version

0.1.2

License

none

Unpacked Size

1.35 MB

Total Files

9

Last publish

Collaborators

  • dahacouk
  • darrenmothersele
  • guy_schneerson