UNPKG

@syncfusion/ej2-filemanager

Version:
123 lines (122 loc) 4.79 kB
import { IFileManager, ReadArgs } from '../base/interface'; /** * Function to read the content from given path in File Manager. * * @param {IFileManager} parent - specifies the parent element. * @param {string} event - specifies the event. * @param {string} path - specifies the path. * @returns {void} * @private */ export declare function read(parent: IFileManager, event: string, path: string): void; /** * Function to create new folder in File Manager. * * @param {IFileManager} parent - specifies the parent element. * @param {string} itemName - specifies the item name. * @returns {void} * @private */ export declare function createFolder(parent: IFileManager, itemName: string): void; /** * Function to filter the files in File Manager. * * @param {IFileManager} parent - specifies the parent element. * @param {string} event - specifies the event. * @returns {void} * @private */ export declare function filter(parent: IFileManager, event: string): void; /** * Function to rename the folder/file in File Manager. * * @param {IFileManager} parent - specifies the parent element. * @param {string} path - specifies the path. * @param {string} itemNewName - specifies the item's new name. * @returns {void} * @private */ export declare function rename(parent: IFileManager, path: string, itemNewName: string): void; /** * Function to paste file's and folder's in File Manager. * * @param {IFileManager} parent - specifies the parent element. * @param {string} path - specifies the path. * @param {string[]} names - specifies the names. * @param {string} targetPath - specifies the target path. * @param {string} pasteOperation - specifies the paste operation. * @param {string[]} renameItems - specifies the rename items. * @param {Object[]} actionRecords - specifies the action records. * @returns {void} * @private */ export declare function paste(parent: IFileManager, path: string, names: string[], targetPath: string, pasteOperation: string, renameItems?: string[], actionRecords?: Object[]): void; /** * Function to delete file's and folder's in File Manager. * * @param {IFileManager} parent - specifies the parent element. * @param {string[]} items - specifies the items. * @param {string} path - specifies the path. * @param {string} operation - specifies the operation. * @returns {void} * @private */ export declare function Delete(parent: IFileManager, items: string[], path: string, operation: string): void; /** * Function to get details of file's and folder's in File Manager. * * @param {IFileManager} parent - specifies the parent element. * @param {string[]} names - specifies the names. * @param {string} path - specifies the path. * @param {string} operation - specifies the operation data. * @returns {void} * @private */ export declare function GetDetails(parent: IFileManager, names: string[], path: string, operation: string): void; /** * Checks whether fileSystemData is enabled. * * @param {IFileManager} parent - specifies the parent element. * @returns {boolean} - returns the boolean value. */ export declare function isFileSystemData(parent: IFileManager): boolean; /** * Function for search in File Manager. * * @param {IFileManager} parent - specifies the parent element. * @param {string} event - specifies the event. * @param {string} path - specifies the path. * @param {string} searchString - specifies the search string. * @param {boolean} showHiddenItems - specifies the hidden items. * @param {boolean} caseSensitive - specifies the casing of search text. * @returns {void} * @private */ export declare function Search(parent: IFileManager, event: string, path: string, searchString: string, showHiddenItems?: boolean, caseSensitive?: boolean): void; /** * Function for download in File Manager. * * @param {IFileManager} parent - specifies the parent element. * @param {string} path - specifies the path. * @param {string[]} items - specifies the items. * @returns {void} * @private */ export declare function Download(parent: IFileManager, path: string, items: string[]): void; /** * Function for trigger Fetch success in File Manager. * * @param {IFileManager} parent - specifies the parent element. * @param {Object} ajaxSettings - specifies the ajax settings. * @returns {void} */ export declare function triggerFetchSuccess(parent: IFileManager, ajaxSettings: Object): void; /** * Function for trigger Fetch failure in File Manager. * * @param {IFileManager} parent - specifies the parent element. * @param {Object} ajaxSettings - specifies the ajax settings. * @param {ReadArgs} result - specifies the result. * @returns {void} */ export declare function triggerFetchFailure(parent: IFileManager, ajaxSettings: Object, result: ReadArgs): void;