FileSelector (Context Context, IFileSystemManager fileSystemManager)
| Name | Type |
|---|---|
| Context |
Nucleus.Abstractions.Models.Context
The current Nucleus Context. |
| fileSystemManager |
Nucleus.Abstractions.Managers.IFileSystemManager
The file system manager instance. |
InvokeAsync (Site site, File file, String pattern, String propertyName, String controllerName, String selectActionName, String selectAnotherActionName, String target, Boolean showSelectAnother, String noFilesMessage, Boolean showImagePreview)
| Name | Type |
|---|---|
| site |
Nucleus.Abstractions.Models.Site
The site to display files for. If not specfied, uses the current site. |
| file |
Nucleus.Abstractions.Models.FileSystem.File
The currently selected file, or null if no file is selected. |
| pattern |
String
A regular expression pattern to filter file names (optional). |
| propertyName |
String
The name of the property to bind the selected file to (defaults to "SelectedFile"). |
| controllerName |
String
The name of the controller which handles the select another action. |
| selectActionName |
String
The name of the action to invoke when selecting a provider, folder or file (defaults to null, which causes the current action to be used). |
| selectAnotherActionName |
String
The name of the action to invoke when selecting another file (defaults to "SelectAnother"). |
| target |
String
The data-target which identifies the section which is updated after selection events. |
| showSelectAnother |
Boolean
Whether to show the "Select Another" button (defaults to true). |
| noFilesMessage |
String
The message to display when no files are available (defaults to "(no files)"). |
| showImagePreview |
Boolean
Whether to show an image preview for image files (defaults to false). |