tui-dom
v3.0.0
Published
TOAST UI Utility: DOM
Downloads
1,515
Readme
TOAST UI Dom library
A module for manipulating the DOM or control the DOM events.
Feature
- Module that can control the information of DOM
- Add, remove, find DOM class name
- DOM events module
- Add, remove, fire DOM events
- Control mouse events
Documentation
Dependency
- tui-code-snippet: ^1.2.5
Test environment
PC
- IE8~11
- Edge
- Chrome
- Firefox
- Safari
Usage
Use npm
Install the latest version using npm
command:
$ npm install tui-dom --save
or want to install the each version:
$ npm install tui-dom@<version> --save
To access as module format in your code:
var domUtil = require('tui-dom');
domUtil.addClass(element, 'candies');
Use bower
Install the latest version using bower
command:
$ bower install tui-dom
or want to install the each version:
$ bower install tui-dom#<tag>
To access as namespace format in your code:
var domUtil = tui.dom;
domUtil.addClass(element, 'candies');