From e6d08b4f8787cc58b344933b8fc06272325b59ea Mon Sep 17 00:00:00 2001 From: bartbutenaers Date: Thu, 14 Nov 2024 19:31:50 +0000 Subject: [PATCH 1/7] reset table selection --- ui/src/widgets/ui-table/UITable.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/widgets/ui-table/UITable.vue b/ui/src/widgets/ui-table/UITable.vue index 85e817ef..9d293b7b 100644 --- a/ui/src/widgets/ui-table/UITable.vue +++ b/ui/src/widgets/ui-table/UITable.vue @@ -173,6 +173,7 @@ export default { if (this.props.action === 'append') { this.localData = value && value?.length > 0 ? [...this.localData || [], ...value] : value } else { + this.selected = null this.localData = value } From dfc3c0cbbfb7867970bab24c5415fddef0de04e6 Mon Sep 17 00:00:00 2001 From: bartbutenaers Date: Sat, 16 Nov 2024 22:18:50 +0000 Subject: [PATCH 2/7] dynamic ui-template format --- docs/nodes/widgets/ui-template.md | 8 + nodes/widgets/ui_template.js | 44 ++- ui/src/widgets/ui-template/UITemplate.vue | 380 ++++++++++++---------- 3 files changed, 240 insertions(+), 192 deletions(-) diff --git a/docs/nodes/widgets/ui-template.md b/docs/nodes/widgets/ui-template.md index 77857a14..6971687e 100644 --- a/docs/nodes/widgets/ui-template.md +++ b/docs/nodes/widgets/ui-template.md @@ -5,6 +5,10 @@ props: Scope: "Template nodes can be used for 3 purposes/scopes: " Class: Appends CSS classes to the widget Template: The content of the widget or CSS <style>. If using this for CSS, you do not need to include any <style> tags, as these will be automatically added. +dynamic: + Format: + payload: msg.ui_update.format + structure: ["String"] ---