Skip to content

Commit 398d9f7

Browse files
author
Steven Orvell
committed
Document custom-style module property.
1 parent 4e640c7 commit 398d9f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib/custom-style.html

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
browsers without non-native Shadow DOM.
2424
* Custom properties used by Polymer's shim for cross-scope styling
2525
may be defined in an `custom-style`.
26+
* A module attribute may be specified to pull in style data from a `dom-module`
27+
matching the module attribute. By using `module`, style data
28+
can be shared between multiple `custom-style` elements.
2629
2730
Example:
2831
@@ -82,6 +85,11 @@
8285

8386
properties: {
8487
// module is a property so that it deserializes
88+
/**
89+
* Specify module to identify a `dom-module` containing style data which
90+
* should be used within the `custom-style`. By using `module` style data
91+
* may be shared between multiple different `custom-style` elements.
92+
*/
8593
module: String
8694
},
8795

0 commit comments

Comments
 (0)