The FolderSelector
control (View Component) provides a user interface for selecting a folder from the file system. It supports multiple file system providers,
navigation through folder hierarchies, and filtering of folder contents. The control is designed to be used in forms where a folder
selection is required, such as file upload destinations or folder management features.
Add a FolderSelector control to your Razor view using code like this:
@await Component.InvokeAsync(typeof(Nucleus.ViewFeatures.Controls.FolderSelector), new
{
folder = Model.DocumentationFolder,
PropertyName = "DocumentationFolder"
})
model | A Folder object representing the currently selected folder. |
propertyName | The name of the view model property to bind the selected folder to. Defaults to "SelectedFolder". |
pattern | A regular expression pattern used to filter folder contents (files and subfolders). |