@pnp/spfx-property-controls
Version:
Reusable property pane controls for SharePoint Framework solutions
25 lines • 1.15 kB
TypeScript
import { BaseComponentContext } from '@microsoft/sp-component-base';
import { IFolderExplorerService, IFolder } from "./IFolderExplorerService";
export declare class FolderExplorerService implements IFolderExplorerService {
private context;
constructor(context: BaseComponentContext);
/**
* Get libraries within a given site
* @param webAbsoluteUrl - the url of the target site
*/
getDocumentLibraries: (webAbsoluteUrl: string) => Promise<IFolder[]>;
/**
* Get folders within a given library or sub folder
* @param webAbsoluteUrl - the url of the target site
* @param folderRelativeUrl - the relative url of the folder
*/
getFolders: (webAbsoluteUrl: string, folderRelativeUrl: string) => Promise<IFolder[]>;
/**
* Create a new folder
* @param webAbsoluteUrl - the url of the target site
* @param folderRelativeUrl - the relative url of the base folder
* @param name - the name of the folder to be created
*/
addFolder: (webAbsoluteUrl: string, folderRelativeUrl: string, name: string) => Promise<IFolder>;
}
//# sourceMappingURL=FolderExplorerService.d.ts.map