Skip to content

Commit 638dacd

Browse files
authored
Update whack.md
1 parent 449e88f commit 638dacd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/overview/xml-capabilities/whack.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ Style blocks can be conditional, as in:
7070
</w:Style>
7171
```
7272

73+
An arbitrary map of parameters (`Map.<String, String>`) may be passed as well:
74+
75+
```
76+
<w:Style {map}>
77+
...
78+
</w:Style>
79+
```
80+
7381
#### Linking style sheets in custom components
7482

7583
For a component to support `<w:Style>` tags, it simply needs to support a `stylesheet : [whack.ds.StyleSheet]` parameter.
@@ -102,3 +110,4 @@ Use `s:n={v}` attributes as a shortcut to `style={{ ..., n: v }}`.
102110
```
103111
<w:Button s:background="orange">button1</w:Button>
104112
```
113+

0 commit comments

Comments
 (0)