<script defer>
import { Tag } from 'gadjet/dist/module/gadjet.bundle.js';
Tag.define('el-tag');
Tag.tagStyle({
color: 'blue',
borderRadius: '4px'
})
<el-tag>Tag</el-tag>
<script defer>
import { TagX } from 'gadjet/dist/module/gadjet.bundle.js';
TagX.define('el-tagx');
TagX.tagStyle({
color: 'blue',
borderRadius: '4px'
})
<el-tagx>Tag</el-tagx>
remove()
remove
document.querySelector('el-tag').addEventListener(
'remove', (event) => {
console.log(`${event.target} has been removed`);
}
)