From 6e8b35c4c19c0c65ac7b8712137ec0a5eaefe78e Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Thu, 15 Dec 2022 07:51:22 +0100 Subject: [PATCH] [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 --- bundles/org.openhab.automation.jsscripting/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.automation.jsscripting/README.md b/bundles/org.openhab.automation.jsscripting/README.md index 0d84bd154103e..9d1841b9f96ee 100644 --- a/bundles/org.openhab.automation.jsscripting/README.md +++ b/bundles/org.openhab.automation.jsscripting/README.md @@ -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` |