Defines the fluent API for configuring EditorFileBrowserSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class EditorFileBrowserSettingsBuilder
Inheritance: objectEditorFileBrowserSettingsBuilder
Inherited Members
Constructors
EditorFileBrowserSettingsBuilder method.
public EditorFileBrowserSettingsBuilder(EditorFileBrowserSettings container)
Properties
Gets the settings being configured.
protected EditorFileBrowserSettings Container { get; }
Methods
Configures the URL for directory create operation.
public EditorFileBrowserSettingsBuilder Create(Action<EditorFileBrowserOperationBuilder> configurator)
The action which configures the Create Action.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action, Controller, and routeValues for directory create operation.
public EditorFileBrowserSettingsBuilder Create(string actionName, string controllerName, object routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesobjectRoute values.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action, Controller, and routeValues for directory create operation.
public EditorFileBrowserSettingsBuilder Create(string actionName, string controllerName, RouteValueDictionary routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesRouteValueDictionaryRoute values.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action and Controller that will handle the directory creation.
public EditorFileBrowserSettingsBuilder Create(string actionName, string controllerName)
Name of the Action.
controllerNamestringName of the Controller.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Configures the URL for the file or directory destroy operation.
public EditorFileBrowserSettingsBuilder Destroy(Action<EditorFileBrowserOperationBuilder> configurator)
The action which configures the Destroy Action.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action, Controller, and routeValues for file or directory destroy operation.
public EditorFileBrowserSettingsBuilder Destroy(string actionName, string controllerName, object routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesobjectRoute values.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action, Controller, and routeValues for file or directory destroy operation.
public EditorFileBrowserSettingsBuilder Destroy(string actionName, string controllerName, RouteValueDictionary routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesRouteValueDictionaryRoute values.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action and Controller that will handle the file or directory deletion.
public EditorFileBrowserSettingsBuilder Destroy(string actionName, string controllerName)
Name of the Action.
controllerNamestringName of the Controller.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Configures the URL for serving the original file.
public EditorFileBrowserSettingsBuilder File(Action<EditorFileBrowserOperationBuilder> configurator)
The action which configures the File Action.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action, Controller, and routeValues responsible for serving the original file.
public EditorFileBrowserSettingsBuilder File(string actionName, string controllerName, object routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesobjectRoute values.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action, Controller, and routeValues responsible for serving the original file.
public EditorFileBrowserSettingsBuilder File(string actionName, string controllerName, RouteValueDictionary routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesRouteValueDictionaryRoute values.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action and Controller responsible for serving the original file.
public EditorFileBrowserSettingsBuilder File(string actionName, string controllerName)
Name of the Action.
controllerNamestringName of the Controller.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
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:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Defines the allowed file extensions.
public EditorFileBrowserSettingsBuilder FileTypes(string value)
The value for FileTypes
Returns:EditorFileBrowserSettingsBuilder
Returns the current EditorFileBrowserSettingsBuilder instance.
Defines texts shown within the file browser.
public EditorFileBrowserSettingsBuilder Messages(Action<EditorFileBrowserMessagesSettingsBuilder> configurator)
The EditorFileBrowserMessagesSettingsBuilder for the messages setting.
Returns:EditorFileBrowserSettingsBuilder
Returns the current instance of EditorFileBrowserSettingsBuilder .
Defines the initial folder to display, relative to the root.
public EditorFileBrowserSettingsBuilder Path(string value)
The value for Path
Returns:EditorFileBrowserSettingsBuilder
Returns the current EditorFileBrowserSettingsBuilder instance.
Configures the URL for remote file read operation.
public EditorFileBrowserSettingsBuilder Read(Action<EditorFileBrowserOperationBuilder> configurator)
The action which configures the Read Action.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action, Controller, and routeValues for remote file retrieval.
public EditorFileBrowserSettingsBuilder Read(string actionName, string controllerName, object routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesobjectRoute values.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action, Controller, and routeValues for remote file retrieval.
public EditorFileBrowserSettingsBuilder Read(string actionName, string controllerName, RouteValueDictionary routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesRouteValueDictionaryRoute values.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action and Controller for remote file retrieval.
public EditorFileBrowserSettingsBuilder Read(string actionName, string controllerName)
Name of the Action.
controllerNamestringName of the Controller.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Set the object responsible for describing the file raw data format.
public EditorFileBrowserSettingsBuilder Schema(Action<EditorFileBrowserSchemaSettingsBuilder> configurator)
The EditorFileBrowserSchemaSettingsBuilder for the schema setting.
Returns:EditorFileBrowserSettingsBuilder
Returns the current instance of EditorFileBrowserSettingsBuilder .
Specifies the settings for loading and saving data.
public EditorFileBrowserSettingsBuilder Transport(Action<EditorFileBrowserTransportSettingsBuilder> configurator)
The EditorFileBrowserTransportSettingsBuilder for the transport setting.
Returns:EditorFileBrowserSettingsBuilder
Returns the current instance of EditorFileBrowserSettingsBuilder .
Configures the URL for files uplaod operation.
public EditorFileBrowserSettingsBuilder Upload(Action<EditorFileBrowserOperationBuilder> configurator)
The action which configures the Upload Action.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action, Controller, and routeValues for uploading new files.
public EditorFileBrowserSettingsBuilder Upload(string actionName, string controllerName, object routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesobjectRoute values.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action, Controller, and routeValues for uploading new files.
public EditorFileBrowserSettingsBuilder Upload(string actionName, string controllerName, RouteValueDictionary routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesRouteValueDictionaryRoute values.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.
Sets the Action and Controller that will handle the new files upload.
public EditorFileBrowserSettingsBuilder Upload(string actionName, string controllerName)
Name of the Action.
controllerNamestringName of the Controller.
Returns:EditorFileBrowserSettingsBuilder
The current EditorFileBrowserSettingsBuilder instance to support method chaining.