Tags

Tag


Tag

Coding

js <script defer>

import { Tag } from 'gadjet/dist/module/gadjet.bundle.js';

Tag.define('el-tag');
Tag.tagStyle({
    color: 'blue',
    borderRadius: '4px'
})

html

<el-tag>Tag</el-tag>

TagX


Tag

Coding

js <script defer>

import { TagX } from 'gadjet/dist/module/gadjet.bundle.js';

TagX.define('el-tagx');
TagX.tagStyle({
    color: 'blue',
    borderRadius: '4px'
})

html

<el-tagx>Tag</el-tagx>

Element API

fnremove()

Remove tag.

eventremove

Emitted when tag is removed
Example
document.querySelector('el-tag').addEventListener(
    'remove', (event) => {
        console.log(`${event.target} has been removed`);
    }
)
gadjet
Getting Started Style Portion UI