From f5de77c55e4c845143600be2f7bc34d0ed9c17de Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Fri, 8 Apr 2022 22:13:10 +0200 Subject: [PATCH] Add labels and groups to layer documentation --- Models/ThemeConfig/TagRenderingConfig.ts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Models/ThemeConfig/TagRenderingConfig.ts b/Models/ThemeConfig/TagRenderingConfig.ts index 6af7592cd..0f2aa3fdb 100644 --- a/Models/ThemeConfig/TagRenderingConfig.ts +++ b/Models/ThemeConfig/TagRenderingConfig.ts @@ -542,13 +542,28 @@ export default class TagRenderingConfig { ).SetClass("code") , "is shown"]) } - + + let group : BaseUIElement = undefined + if(this.group !== undefined && this.group !== ""){ + group = new Combine([ + "This tagrendering is part of group ", new FixedUiElement(this.group).SetClass("code") + ]) + } + let labels : BaseUIElement = undefined + if(this.labels?.length > 0){ + labels = new Combine([ + "This tagrendering has labels ", + ...this.labels.map(label => new FixedUiElement(label).SetClass("code")) + ]) + } return new Combine([ new Title(this.id, 3), this.question !== undefined ? "The question is **" + this.question.txt + "**" : "_This tagrendering has no question and is thus read-only_", new Combine(withRender), mappings, - condition + condition, + group, + labels ]).SetClass("flex-col"); } } \ No newline at end of file