Flags

If you prefix any of your element's attributes with a w: it becomes a flag.

Flags are passed to this.flags and are recommended for namespacing your "service" attributes.

Built-in Flags

WebComp also pre-defines some flags that change the behavior of WebComp components:

w:ignore-children

If this flag is set, content of a custom tag won't be passed to this.props.children when component is rendered.

w: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.

Last updated