跳到主要内容

TFrameConfig

The frame configuration.

type TFrameConfig = object;

Properties​

PropertyTypeDescription
acceptButtonLabel?stringThe label for the selector accept button.
buttonColor?stringThe HEX code to customize the selector button color.
cancelButtonLabel?stringThe label for the selector cancel button.
checkCSP?booleanSpecifies whether to check for the presence of CSP headers before initialization.
destroyText?stringThe text to display when destroying the frame. It will be inserted into the div tag when the "destroyFrame" method is called.
disableActionButton?booleanSpecifies whether to disable the "Actions" button in the manager interface.
downloadToEvent?booleanSpecifies whether to handle download links using the onDownload event instead of downloading directly.
editorCustomization?TEditorCustomization | objectThe parameters to customize editors.
editorGoBack?boolean | stringSpecifies whether the "Open file location" button is displayed in the editor.
editorType?TEditorTypeThe editor mode display type.
events?TFrameEventsThe callback functions for SDK events.
filter?TFrameFilterThe filter parameters that facilitate searching files and folders in the DocSpace manager.
filterParam?stringThe filter parameters that facilitate searching files in the selector mode.
frameIdstringThe unique frame identifier used to refer to the SDK instance.
height?stringThe iframe height measured in percentages or pixels.
id?string | number | nullThe unique instance identifier used in the SDK initialization modes.
infoPanelVisible?booleanSpecifies whether to display a button to show the info panel in the DocSpace manager.
init?boolean | nullSpecifies whether to initialize the frame.
locale?string | nullThe language of the DocSpace user interface specified with the four letter language code.
modeTFrameMode | stringThe SDK initialization mode.
name?stringThe iframe name used for messaging at the SDK level.
noLoader?booleanSpecifies whether to initialize the frame without showing a loading spinner.
requestToken?string | nullThe authorization token for API requests. Used to open public rooms and files in public rooms.
roomType?stringThe selector room type.
rootPath?stringThe base path used for DocSpace navigation. By default, opens a list of rooms.
selectorType?TSelectorTypeThe filter type used in the selector views.
showFilter?booleanSpecifies whether the filter options are displayed in the DocSpace manager.
showHeader?booleanSpecifies whether the interface header is displayed in the mobile view manager.
showHeaderBanner?TBannerDisplayingThe display settings of the header banner.
showMenu?booleanSpecifies whether the left menu is displayed in the DocSpace manager.
showSelectorCancel?booleanSpecifies whether the "Cancel" button is displayed in the selector mode.
showSelectorHeader?booleanSpecifies whether the interface header is displayed in the selector mode.
showSettings?booleanSpecifies whether to display the "Manage displayed columns" button for configuring the table columns in the list view.
showSignOut?booleanSpecifies whether the "Sign out" button is displayed.
showTitle?booleanSpecifies whether the title of the current section/room/folder is displayed in the DocSpace manager.
srcstringThe source URL to the iframe used to generate links.
theme?TTheme | stringThe UI theme settings.
type?TEditorTypeThe platform type used by the browser and affects the parameters of the inserted object.
viewAs?TManagerViewModeThe default view mode - the way items are arranged in the DocSpace manager.
viewTableColumns?stringThe comma-separated string of table column names that are displayed in the table view mode.
waiting?booleanSpecifies whether the frame is in the loading state.
width?stringThe iframe width measured in percentages or pixels.
withBreadCrumbs?booleanSpecifies whether to show breadcrumb navigation in the selector mode.
withSearch?booleanSpecifies whether to display "Search" in the selector mode.
withSubtitle?booleanSpecifies whether to display a subtitle with additional comments or descriptions for the current directory.