Skip to content

Commit 0556d19

Browse files
committed
docs(readme): update readme with latestes API
including removal of globalOptions and new bootstrap feature
1 parent 2e15698 commit 0556d19

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

readme.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Add in your `.babelrc`
2727
"name": "button",
2828
"priority": 100,
2929
"source": "./myButtonDirective.js",
30-
"globalOptions": {
30+
"bootstrap": {
3131
"colour": "fuchsia"
3232
}
3333
},
@@ -54,7 +54,9 @@ _* Not really mandatory, but this plugin wont do nothing without specific config
5454
- `type` ("attribute"|"element"): whether the directive should be applied
5555
on matches against element names or attribute names. Default: "attribute"
5656
- `priority` (Integer): Directives with a higher priority run first, Default: 0
57-
- `globalOptions` (any): Additional options that are provided to directives
57+
- `bootstrap` (any): If present, a `bootstrap` function will be exported
58+
from `source` and called once when the application starts with any value
59+
provided to `bootstrap`.
5860
- `transformOptions` (Function): Only for attribute directives. Optional transformer
5961
for the options node. See [Transform Options](#transform-options)
6062

@@ -146,10 +148,6 @@ target library, like [context](https://facebook.github.io/react/docs/context.htm
146148
A directive can also decide to not call `next` at all and prevent creation
147149
of all child components.
148150
149-
- `globalOptions`: Globally provided directive options
150-
151-
see [Directive Configuration](#directive-configuration).
152-
153151
- `options`: Value of the directive attribute. _(Only available on attribute directives)_
154152
155153
Given this jsx `<div foo="bar" />`, a `foo` attribute directive would receive

0 commit comments

Comments
 (0)