Skip to content

object-dom/object-element-selection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published