diff options
author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-12-03 19:44:25 -0500 |
---|---|---|
committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-12-03 19:44:25 -0500 |
commit | af94458be6620ae8a05730f17ee3fc4ec403cf09 (patch) | |
tree | 43ef3dabb13c4fe693a1e70799744f747c84eba3 /src/client/views/nodes/DataVizBox/DocCreatorMenu/EditableTemplateDoc.tsx | |
parent | d2eef0d1341c475a8cb753efeb31b270714e76ec (diff) |
bunch of changes related to rendering changes to template docs; trying to make it so docs don't need to rerender every time, and so that all attributes are accounted for.
Diffstat (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/EditableTemplateDoc.tsx')
-rw-r--r-- | src/client/views/nodes/DataVizBox/DocCreatorMenu/EditableTemplateDoc.tsx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/EditableTemplateDoc.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu/EditableTemplateDoc.tsx new file mode 100644 index 000000000..5ec27f338 --- /dev/null +++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/EditableTemplateDoc.tsx @@ -0,0 +1,22 @@ +import { Doc } from "../../../../../fields/Doc"; +import { SubCollectionViewProps } from "../../../collections/CollectionSubView"; +import { CollectionFreeFormView } from "../../../collections/collectionFreeForm"; +import { TemplateManager } from "./TemplateManager"; +import { TemplateLayouts } from "./TemplateBackend"; +import { Template } from "./Template"; + +class EditableTemplateDoc extends CollectionFreeFormView { + + template: Template; + + constructor(props: SubCollectionViewProps, template: Template){ + super(props); + this.template = template; + } + + addDocumenta = (newBox: Doc | Doc[]): boolean => { + this.addDocument(newBox); + + return true; + } +}
\ No newline at end of file |