aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 144554cbc..86e459561 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -46,6 +46,7 @@ import { DocumentType } from "./DocumentTypes";
import { RecommendationsBox } from "../views/RecommendationsBox";
import { SearchDocBox } from "../views/SearchDocBox";
+
//import { PresBox } from "../views/nodes/PresBox";
//import { PresField } from "../../new_fields/PresField";
import { LinkFollowBox } from "../views/linking/LinkFollowBox";
@@ -258,7 +259,7 @@ export namespace Docs {
layout: { view: InkingStroke, dataField: data },
options: { backgroundColor: "transparent" }
}],
- [DocumentType.SEARCH, {
+ [DocumentType.SEARCHBOX, {
layout: { view: SearchDocBox },
options: { width: 200, height: 200 },
}]
@@ -594,8 +595,8 @@ export namespace Docs {
return InstanceFromProto(Prototypes.get(DocumentType.RECOMMENDATION), new List<Doc>(data), options);
}
- export function SearchDocument(options: DocumentOptions = {}) {
- return InstanceFromProto(Prototypes.get(DocumentType.SEARCH), new List<Doc>(), options);
+ export function SearchDocument(documents: Array<Doc>, options: DocumentOptions = {}) {
+ return InstanceFromProto(Prototypes.get(DocumentType.SEARCHBOX), new List(documents), options);
}
export type DocConfig = {