[]
The following sections describe the module: documentBinder/types.
• token: string
The token needed to access the Wyn API.
Example
token: 'DA3CF35403BF9B0823A63CB2663D58E88B0B85FB588A1068753E0BDEF935B7C2'• URL: string
The Wyn Server URL.
Example
url: 'http://localhost:51980/'• Optional useTokenInHeader: boolean
When set to true, the token will be sent in the request header instead of the query parameter. The default value is false, meaning the token is passed through the URL.
Example
useTokenInHeader: true,• Optional designer: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: DocumentBinderInitOptionFull) => Element
• Optional preview: Object
Name | Type |
|---|---|
| ( |
| ( |
destroy: (element: Element) => void
init: (option: DocumentBinderInitOptionFull) => Element
• Optional afterDocumentSave: (success: boolean, documentId?: string) => void
▸ (success, documentId?): void
The callback after save.
Name | Type |
|---|---|
|
|
|
|
void
Example
afterDocumentSave: () => {}↳ InitOption
• backendServer: BackendServer
• language: string
The designer or viewer language
Example
language: 'zh'InitOptionBase.language
• parentSelector: () => HTMLElement
▸ (): HTMLElement
The dom contains designer or viewer.
HTMLElement
Example
parentSelector: () => document.querySelector('#root')• Optional siteTitle: string
The web tab title.
Example
siteTitle: 'dataset'• Optional theme: string
The designer or viewer theme.
Example
theme: 'red'InitOptionBase.theme
• Optional version: string
The designer or viewer version.
Example
version: '1.0.0'InitOptionBase.version
InitOptionBase
• language: string
The designer or viewer language.
Example
language: 'zh'• Optional siteTitle: string
The web tab title
Example
siteTitle: 'dataset'• Optional theme: string
The designer or viewer theme.
Example
theme: 'red'• Optional version: string
The designer or viewer version.
Example
version: '1.0.0'Ƭ DocumentBinderInitOption: InitOptionBase & DocumentBinderInitOptionCore
Ƭ DocumentBinderInitOptionCore: Object
Name | Type |
|---|---|
|
|
|
|
documentId?: string
The documentBinder id.
Example
documentId: '1f183c3f-64f9-4b4c-ac92-cd37580bde21'showCloseButton?: boolean
A flag specifying whether to show the showCloseButton.
Example
showCloseButton: trueƬ DocumentBinderInitOptionFull: InitOption & DocumentBinderInitOptionCore
Ƭ destroyAble: Object
Name | Type |
|---|---|
| () => |
destroy: () => void