@logo-elements/tags-list

23.0.13 • Public • Published

@logo-elements/tags-list

List of tags for inform user about what she/he selected

npm version

<logo-elements-tags-list 
        items="tagList"
        show-empty="false"
        empty-text="No Content"
        clear-all-text="Clear All"
        show-label="true"
        label-text="Filters"
>
</logo-elements-tags-list>

The items interface is

[
    {
        title: String,
        value: String,
        id: String,
    }
]

The sample data is:

const tagList = [
          {
            "title": "Test Item 1",
            "value": "Patates",
            "id": "4567"
          },
          {
            "title": "Test Item 2",
            "value": "Domates",
            "id": "1234"
          },
        ];

Events

  • tagRemoved : Item id fired when single item is removed.
    Interface of the output:
{detail: {id: string}}
  • tagsCleared : Fires when all tags are cleared from the list.
    Interface of the output:
{detail: {items: Array}}

Installation

Install the component:

npm i @logo-elements/tags-list -s

Once installed, import the component in your application:

import '@logo-elements/tags-list';

For more detailed information, please visit:

Logo Elements Documentation ↗

Package Sidebar

Install

npm i @logo-elements/tags-list

Weekly Downloads

17

Version

23.0.13

License

See license in LICENSE file

Unpacked Size

698 kB

Total Files

9

Last publish

Collaborators

  • furkan.cetin
  • yusufyilmaz
  • serdarates
  • gamzeyapici
  • serhan.gurbuz