Skip to content

jquery plugin to help developers using jquery inside google polymer projects

Notifications You must be signed in to change notification settings

digital-flowers/jquery-polymer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

jquery-polymer

this jquery plugin extend several jquery functions for web components manpulations specialy accessing web components internal shadow root and template elements:

$.nativeShadowDOM() this function return true if the browser already support shadow dom natively without any polyfill

$("#element").hasShadowRoot() this function return true if the selected element has shadow root

$("#element").shadow() or $("#element").getShadowRoot() this function return the element shadow root as Jquery object where you can access internal template items for example you can do $("#element").shadow().find("#my-button")

$("#element").getOwnerShadowRoot() this function return the parent element shadow root if the selected element is inside a web component template

$("#element").find(":shadow") this psudo selector refere to any elemnt shadow root

also this plugin fix jquery offset() function for any element inside a webcomponent (shadow root)

About

jquery plugin to help developers using jquery inside google polymer projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published