Skip to content

nhn/tui.dom

Repository files navigation

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

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');

Download

License

MIT LICENSE