Skip to content

Files

Latest commit

author
Shallker Wang
Oct 29, 2013
863485e · Oct 29, 2013

History

History
50 lines (37 loc) · 865 Bytes

Readme.md

File metadata and controls

50 lines (37 loc) · 865 Bytes

object-element-selection

Provide selection methods to object element

Installation

Install with component(1):

$ component install shallker/object-element-selection

API

.parent
.ancestors
.prevSibling
.prevSiblings
.siblings
.nextSibling
.nextSiblings
.children
.descendants

Ancestors

.selectAncestors()
.selectFarthestAncestor()
.selectNearestAncestor()

Siblings

.selectSiblings()
.selectPrevSiblings()
.selectNextSiblings()
.selectPrevSibling()
.selectNextSibling()
.selectFirstSibling()
.selectLastSibling()

Children

.selectChildren()
.selectFirstChild()
.selectLastChild()

Descendants

.select()
.selectFirst()
.selectLast()

License

MIT