MCPcopy
hub / github.com/mdbootstrap/TW-Elements / getElementFromSelector

Function getElementFromSelector

src/js/util/index.js:66–70  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

64};
65
66const getElementFromSelector = (element) => {
67 const selector = getSelector(element);
68
69 return selector ? document.querySelector(selector) : null;
70};
71
72const getTransitionDurationFromElement = (element) => {
73 if (!element) {

Callers 8

dataApiClickHandlerMethod · 0.90
getParentFromElementMethod · 0.90
hideMethod · 0.90
_initializeChildrenMethod · 0.90
showMethod · 0.90
offcanvasCallbackFunction · 0.90
modalCallbackFunction · 0.90
enableDismissTriggerFunction · 0.90

Calls 1

getSelectorFunction · 0.85

Tested by

no test coverage detected