From 4ce711a5c497a7b198f4be05325cca217fb0844c Mon Sep 17 00:00:00 2001
From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com>
Date: Mon, 4 Nov 2024 04:48:32 -0500
Subject: reworking doc generation from template

---
 src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx')

diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx
index 09eb86d20..6b981d77f 100644
--- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx
+++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx
@@ -23,10 +23,20 @@ export class Template {
         return this.allFields.filter(field => field.getID === id)[0];
     }
 
+    getFieldByTitle = (title: string) => {
+        return this.allFields.filter(field => field.getTitle() === title)[0];
+    }
+
     setupMainField = (templateInfo: FieldSettings) => {
         return new DynamicField(templateInfo, 1);
     }
 
+    renderUpdates = () => {
+        this.allFields.forEach(field => {
+            field.updateRenderedDoc();
+        });
+    };
+
     isValidTemplate = (cols: Col[]) => {
         const matches: number[][] = this.getMatches(cols);
         const maxMatches: number = this.maxMatches(matches);
-- 
cgit v1.2.3-70-g09d2

