IFileBrowserDataProvider

types.IFileBrowserDataProvider

Hierarchy

Implemented by

isSuccess

isSuccess: (resp: IFileBrowserAnswer) => boolean

Type declaration

(resp): boolean

Parameters
Name Type
resp IFileBrowserAnswer
Returns

boolean

Defined in

src/types/file-browser.d.ts#277


getMessage

getMessage: (resp: IFileBrowserAnswer) => string

Type declaration

(resp): string

Parameters
Name Type
resp IFileBrowserAnswer
Returns

string

Defined in

src/types/file-browser.d.ts#278

permissions

permissions(path, source): Promise<Nullable<IPermissions>>

Parameters

Name Type
path string
source string

Returns

Promise<Nullable<IPermissions>>

Defined in

src/types/file-browser.d.ts#209


getPathByUrl

getPathByUrl(url): Promise<{ path: string ; name: string ; source: string }>

Parameters

Name Type
url string

Returns

Promise<{ path: string ; name: string ; source: string }>

Defined in

src/types/file-browser.d.ts#211


items

items(path, source, mods?): Promise<IFileBrowserItem[]>

Parameters

Name Type
path string
source string
mods? IFileBrowserDataProviderItemsMods

Returns

Promise<IFileBrowserItem[]>

Defined in

src/types/file-browser.d.ts#215


itemsEx

itemsEx(path, source, mods?): Promise<{ items: IFileBrowserItem[] ; loadedTotal: number }>

Parameters

Name Type
path string
source string
mods? IFileBrowserDataProviderItemsMods

Returns

Promise<{ items: IFileBrowserItem[] ; loadedTotal: number }>

Defined in

src/types/file-browser.d.ts#221


tree

tree(path, source): Promise<ISourcesFiles>

Parameters

Name Type
path string
source string

Returns

Promise<ISourcesFiles>

Defined in

src/types/file-browser.d.ts#230


createFolder

createFolder(name, path, source): Promise<boolean>

Parameters

Name Type
name string
path string
source string

Returns

Promise<boolean>

Defined in

src/types/file-browser.d.ts#232


move

move(filepath, path, source, isFile): Promise<boolean>

Parameters

Name Type
filepath string
path string
source string
isFile boolean

Returns

Promise<boolean>

Defined in

src/types/file-browser.d.ts#234


fileRemove

fileRemove(path, file, source): Promise<string>

Parameters

Name Type
path string
file string
source string

Returns

Promise<string>

Defined in

src/types/file-browser.d.ts#241


folderRemove

folderRemove(path, file, source): Promise<string>

Parameters

Name Type
path string
file string
source string

Returns

Promise<string>

Defined in

src/types/file-browser.d.ts#243


folderRename

folderRename(path, name, newname, source): Promise<string>

Parameters

Name Type
path string
name string
newname string
source string

Returns

Promise<string>

Defined in

src/types/file-browser.d.ts#245


fileRename

fileRename(path, name, newname, source): Promise<string>

Parameters

Name Type
path string
name string
newname string
source string

Returns

Promise<string>

Defined in

src/types/file-browser.d.ts#252


resize

resize(path, source, name, newname, box): Promise<boolean>

Parameters

Name Type
path string
source string
name string
newname string | void
box void | ImageBox

Returns

Promise<boolean>

Defined in

src/types/file-browser.d.ts#259


crop

crop(path, source, name, newname, box): Promise<boolean>

Parameters

Name Type
path string
source string
name string
newname string | void
box void | ImageBox

Returns

Promise<boolean>

Defined in

src/types/file-browser.d.ts#267


canI

canI(action): boolean

Parameters

Name Type
action string

Returns

boolean

Defined in

src/types/file-browser.d.ts#275


onProgress

onProgress(callback): void

Parameters

Name Type
callback (percentage: number) => void

Returns

void

Defined in

src/types/file-browser.d.ts#280


destruct

destruct(jodit?): any

Parameters

Name Type
jodit? IViewBased<IViewOptions>

Returns

any

Inherited from

IDestructible.destruct

Defined in

jodit/src/types/types.d.ts:32