You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dom-lib

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-lib

DOM helper library

0.0.4
Source
npmnpm
Version published
Weekly downloads
102K
2.63%
Maintainers
1
Weekly downloads
 
Created
Source

dom-lib

DOM helper library

Install

npm install dom-lib --save

Example

import { addClass } from 'dom-lib';

Documnets

Class

hasClass(node,className)
addClass(node,className)
removeClass(node,className)

Events

on()
off()
onFocus()

Query

canUseDOM
activeElement()
contains(context, node)
getContainer(container, defaultContainer)
getHeight(node, client)
getOffset(node)
getOffsetParent(node)
getPosition(node, offsetParent)
getScrollbarSize(recalc)
getWidth(node, client)
getWindow(node)
isOverflowing(container)
nodeName(node)
ownerDocument(componentOrElement)
ownerWindow(componentOrElement)
scrollLeft(node, val)
scrollTop(node, val)

Style

getStyle(node, property)
removeStyle(node, property)
addStyle(node, property, value)

FAQs

Package last updated on 29 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts