You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
711 B

7 years ago
# Flags
If you prefix any of your element's attributes with a `p:` it becomes a _flag_.
Flags are passed to `this.flags` and are recommended for namespacing your "service" attributes.
## Available flags
Pillar also pre-defines some flags that change the behavior of Pillar components:
#### `p:ignore-children`
If this flag is set, content of a custom element tag won't be passed to `this.props.children` when
component is rendered.
#### `p:protected`
This flag locks external attribute manipulation. If an external force like jQuery is trying to
change an element with this flag, changes won't be passed down to `this.props` and it will throw an
error.
**_Next: [Shadow DOM→](./3_SHADOW_DOM.html)_**