select-parent

WebJar for select-parent

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

select-parent
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

select-parent
WebJar for select-parent
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/radubrehar/select-parent

Скачать select-parent

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/select-parent/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>select-parent</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/select-parent/
implementation 'org.webjars.npm:select-parent:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/select-parent/
implementation ("org.webjars.npm:select-parent:1.0.1")
'org.webjars.npm:select-parent:jar:1.0.1'
<dependency org="org.webjars.npm" name="select-parent" rev="1.0.1">
  <artifact name="select-parent" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='select-parent', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "select-parent" % "1.0.1"
[org.webjars.npm/select-parent "1.0.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

select-parent

querySelector but for parent nodes. Given a node, selects the parent/ancestor that matches the given selector.

Install

$ npm install --save select-parent

Usage

var selectParent = require('select-parent')

var redDiv = selectParent('div.red', document.getElementById('inner-div'))

Or you can use the curried form as well.

var selectParent = require('select-parent')

var selectRed = selectParent('div.red')

var redDiv = selectRed(document.getElementById('nested-div'))

Версии библиотеки

Версия
1.0.1