Defines the fluent API for configuring the FileBrowser.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class EditorFileBrowserSettingsBuilder
Inheritance: objectEditorFileBrowserSettingsBuilder
Inherited Members
Constructors
Initializes a new instance of the EditorFileBrowserSettingsBuilder class.
public EditorFileBrowserSettingsBuilder(EditorFileBrowserSettings settings, ViewContext viewContext, IUrlGenerator urlGenerator)
The File Browser settings.
viewContextViewContextThe view context
urlGeneratorIUrlGeneratorThe URL generator.
Methods
Configures the URL for directory create operation.
public EditorFileBrowserSettingsBuilder Create(Action<EditorFileBrowserOperationBuilder> configurator)
The action which configures the Create Action.
Returns:Sets the Action, Controller, and routeValues for directory create operation.
Sets the Action, Controller, and routeValues for directory create operation.
Configures the URL for the file or directory destroy operation.
public EditorFileBrowserSettingsBuilder Destroy(Action<EditorFileBrowserOperationBuilder> configurator)
The action which configures the Destroy Action.
Returns:Sets the Action, Controller, and routeValues for file or directory destroy operation.
Sets the Action, Controller, and routeValues for file or directory destroy operation.
Configures the URL for serving the original file.
public EditorFileBrowserSettingsBuilder File(Action<EditorFileBrowserOperationBuilder> configurator)
The action which configures the File Action.
Returns:Sets the Action, Controller, and routeValues responsible for serving the original file.
Sets the Action, Controller, and routeValues responsible for serving the original file.
Sets the URL responsible for serving the original file. A file name placeholder should be specified. By default the placeholder value is URL encoded. If this is not desired, use a function.
public EditorFileBrowserSettingsBuilder File(string url)
The string URL.
Returns:Defines the allowed file extensions. Default: "."
public EditorFileBrowserSettingsBuilder FileTypes(string value)
The file types.
Returns:Configures the URL for remote file read operation.
public EditorFileBrowserSettingsBuilder Read(Action<EditorFileBrowserOperationBuilder> configurator)
The action which configures the Read Action.
Returns:Sets the Action, Controller, and routeValues for remote file retrieval.
Sets the Action, Controller, and routeValues for remote file retrieval.
Configures the URL for files uplaod operation.
public EditorFileBrowserSettingsBuilder Upload(Action<EditorFileBrowserOperationBuilder> configurator)
The action which configures the Upload Action.
Returns:Sets the Action, Controller, and routeValues for uploading new files.
Sets the Action, Controller, and routeValues for uploading new files.