diff options
| author | andrewdkim <adkim414@gmail.com> | 2020-02-22 15:00:52 -0500 | 
|---|---|---|
| committer | andrewdkim <adkim414@gmail.com> | 2020-02-22 15:00:52 -0500 | 
| commit | ad83dfcfaea5a6b525351b022158ebf5ff1f8c2f (patch) | |
| tree | 32be3b90cb4a71bd6e12280fa184e13e7402a24b /src/client/documents/Documents.ts | |
| parent | 525766cd02ec38174334e62709c36a3b0caa208a (diff) | |
replacing search drag functionality
Diffstat (limited to 'src/client/documents/Documents.ts')
| -rw-r--r-- | src/client/documents/Documents.ts | 7 | 
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 = {  | 
