[jsscripting] Fix broken event object table (#13952)

The table is not properly rendered when reading the documentation in Main UI.

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born 2022-12-15 07:51:22 +01:00 committed by GitHub
parent 79060f3c8f
commit 6e8b35c4c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 |
|----------------|----------------------------------------------------------------------------------------------------------------------|----------------------------------------|---------------------------------------------------------------------------------------------------------------|------------------------|
@ -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` |