Better formatting
This commit is contained in:
parent
c4bd3dffef
commit
ffce90b049
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
|
@ -40,12 +40,12 @@ id = bc:listen_noun("<noun>", event_type, event_arg, function callback)
|
||||||
which is used to register asynchroneous callbacks on noun changes.
|
which is used to register asynchroneous callbacks on noun changes.
|
||||||
`event_type` is one of
|
`event_type` is one of
|
||||||
|
|
||||||
* onchange => whenever the value changes, `event_arg` is ignored
|
* `onchange` => whenever the value changes, `event_arg` is ignored
|
||||||
* onrising => whenever the value gets bigger, `event_arg` is ignored
|
* `onrising` => whenever the value gets bigger, `event_arg` is ignored
|
||||||
* onfalling => whenever the value gets smaller, `event_arg` is ignored
|
* `onfalling` => whenever the value gets smaller, `event_arg` is ignored
|
||||||
* onvalue => whenever the value equals `event_arg`
|
* `onvalue` => whenever the value equals `event_arg`
|
||||||
* onabove => whenever the value is bigger than `event_arg`
|
* `onabove` => whenever the value is bigger than `event_arg`
|
||||||
* onbelow => whenever the value smaller than `event_arg`
|
* `onbelow` => whenever the value smaller than `event_arg`
|
||||||
|
|
||||||
A listener can be removed using
|
A listener can be removed using
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue