SubfolderAPI interface
An interface representing subfolder related APIs
Methods
open |
Opens the subfolder picker dialog. |
Method Details
openSubfolderPickerDialog(OpenSubfolderPickerDialogConfig)
Opens the subfolder picker dialog.
function openSubfolderPickerDialog(config: OpenSubfolderPickerDialogConfig): Promise<OpenSubfolderPickerDialogResult>
Parameters
OpenSubfolderPickerDialogConfig
including:
initialSubfolderId
: The id of the subfolder that the picker initially displays. - Optionaltitle
: The text to be displayed as the title.confirmButtonText
: The text to be displayed on the confirm button.allowSelectWorkspace
: If to show the workspace list for switching workpsace. - Optional with default value falsesemanticInputLabelText
: The text to be displayed as the label of semantic input box, if is undefiend or empty string, the semantic input box will be hidden. - OptionalsemanticInputPlaceholder
: The text id of the target workspace. - OptionalmessageBarModel
: The config of message bar, including message text, type and link. - OptionalallowSelectItemTypes
: The item types could be selected in the dialog, if is undefined or empty, the result will contain the id of the currently browsering subfolder. - OptionalallowMultiSelection
: If allow select multiple items. - Optional with default value falseshowNewButton
: If to show the new button. - Optional with default value false
Returns
Promise<OpenSubfolderPickerDialogResult>
A promise which resolves when the subfolder picker dialog closed
If confirm button is clicked, the value will be SubfolderPickerResult
which including:
selectedWorkspaceObjectId
: The objectId of the selected workspace. Available whenallowSelectWorkspace
is true.selectedSubfolderId
: The id of the selected subfolder. Available whenallowSelectItemTypes
is undefined or empty.selectedItems
: The unique identifiers of the selected items. Available whenallowSelectItemTypes
is not undefined or empty.semanticInputValue
: The input value. Available whensemanticInputLabelText
is not undefined or empty. If cancel button is clicked, the value will beundefined
.