aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.ts
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2025-05-11 07:51:59 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2025-05-11 07:51:59 -0400
commit4af498433a887c70dc7043a5a34eef7fff5bbbe0 (patch)
tree20425085b59d13d994de9dcb3dfa8bd166f6d3f9 /src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.ts
parent8195cb97556765a8025de554a44f48d4c15d4c64 (diff)
a million and one things
Diffstat (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.ts')
-rw-r--r--src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.ts b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.ts
index 1dc6692a2..10724c9f7 100644
--- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.ts
+++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.ts
@@ -57,7 +57,7 @@ export class Template {
//dispose each subfields disposers, etc.
};
- cloneBase = () => new Template(this._mainField?.makeClone(undefined) ?? TemplateLayouts.BasicSettings);
+ clone = (withContent: boolean = false) => new Template(this._mainField?.makeClone(undefined, withContent) ?? TemplateLayouts.BasicSettings);
getRenderedDoc = () => this.doc;
@@ -130,9 +130,7 @@ export class Template {
});
}
- this._mainField.addField(field);
-
- this._mainField.refreshRenderedDoc();
+ this._mainField.makeBackgroundField(field)
}
getMatches = (cols: Col[]): number[][] => {