Skip to content

Commit

Permalink
[jsscripting] Fix broken event object table (openhab#13952)
Browse files Browse the repository at this point in the history
The table is not properly rendered when reading the documentation in Main UI.

Signed-off-by: Wouter Born <github@maindrain.net>
  • Loading branch information
wborn committed Dec 15, 2022
1 parent 79060f3 commit 6e8b35c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bundles/org.openhab.automation.jsscripting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ See [openhab-js](https://openhab.github.io/openhab-js) for a complete list of fu

When you use "Item event" as trigger (i.e. "[item] received a command", "[item] was updated", "[item] changed"), there is additional context available for the action in a variable called `event`.

This tables gives an overview over the `event` object for most common trigger types:
This table gives an overview over the `event` object for most common trigger types:

| Property Name | Type | Trigger Types | Description | Rules DSL Equivalent |
|----------------|----------------------------------------------------------------------------------------------------------------------|----------------------------------------|---------------------------------------------------------------------------------------------------------------|------------------------|
Expand Down Expand Up @@ -1030,7 +1030,8 @@ When a rule is triggered, the script is provided the event instance that trigger
The specific data depends on the event type.
The `event` object provides some information about that trigger.
This tables gives an overview over the `event` object:
This table gives an overview over the `event` object:
| Property Name | Trigger Types | Description | Rules DSL Equivalent |
|-------------------|------------------------------------------------------|-------------------------------------------------------------------------------------|------------------------|
| `oldState` | `ItemStateChangeTrigger`, `GroupStateChangeTrigger` | Previous state of Item or Group that triggered event | `previousState` |
Expand Down

0 comments on commit 6e8b35c

Please sign in to comment.