xtal-decorator

WebJar for xtal-decorator

License

License

MIT
GroupId

GroupId

org.webjars.bowergithub.bahrus
ArtifactId

ArtifactId

xtal-decorator
Last Version

Last Version

0.0.13
Release Date

Release Date

Type

Type

jar
Description

Description

xtal-decorator
WebJar for xtal-decorator
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/bahrus/xtal-decorator

Download xtal-decorator

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.polymerelements : paper-button jar [2.0.0,3)
org.webjars.bowergithub.polymerelements : paper-input jar [2.0.2,3)

Project Modules

There are no modules declared in this project.

Published on webcomponents.org

<xtal-decorator>

Propagate props / attributes / light children into other DOM (custom) elements.

xtal-decorator is a web component capable of creating spells of powerful, dark magic on other DOM elements (custom or otherwise).

xtal-decorator is part of a family of components, along with xtal-decor and xtal-deco. xtal-deco and xtal-decor strive to live within the light. They adhere to the principle of opt-in -- requiring DOM elements to request enhanced behavior via custom attributes (xtal-decor) or via proximity (xtal-deco). Both xtal-deco and xtal-decor can apply "behaviors" on their target elements that last for the lifetime of the elements.

xtal-decorator, on the other hand, searches far and deep -- like xtal-decor, it can target any DOM within its Shadow DOM realm, but in addition, xtal-decorator can recursively pierce inside the Shadow DOM of elements within its realm. Once the target is found, though, it can only do quick one-time things like 1) Set Props, or 2) Set Attributes, and/or 3) Insert a template.

<xtal-decorator selector-sequence='["ginny-weasly", "book-bag"]' props='...' attribs='...' insert-template=beforeend>
    <template>
    ...
        <tom-riddles-diary></tom-riddles-diary>
    ...
    </template>
</xtal-decorator>
...
<ginny-weasly>
 #shadow
    <book-bag></book-bag>
</ginny-weasly>

Syntax

Viewing Your Element

$ npm install
$ npm run serve

Versions

Version
0.0.13