Defines the fluent API for configuring EditorImageBrowserSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class EditorImageBrowserSettingsBuilder
Inheritance: objectEditorImageBrowserSettingsBuilder
Inherited Members
Constructors
EditorImageBrowserSettingsBuilder method.
public EditorImageBrowserSettingsBuilder(EditorImageBrowserSettings container)
Properties
Gets the settings being configured.
protected EditorImageBrowserSettings Container { get; }
Methods
Configures the URL for directory create operation.
public EditorImageBrowserSettingsBuilder Create(Action<EditorImageBrowserOperationBuilder> configurator)
The action which configures the Create Action.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action, Controller, and routeValues for directory create operation.
public EditorImageBrowserSettingsBuilder Create(string actionName, string controllerName, object routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesobjectRoute values.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action, Controller, and routeValues for directory create operation.
public EditorImageBrowserSettingsBuilder Create(string actionName, string controllerName, RouteValueDictionary routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesRouteValueDictionaryRoute values.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action and Controller that will handle the directory creation.
public EditorImageBrowserSettingsBuilder Create(string actionName, string controllerName)
Name of the Action.
controllerNamestringName of the Controller.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Configures the URL for the image or directory destroy operation.
public EditorImageBrowserSettingsBuilder Destroy(Action<EditorImageBrowserOperationBuilder> configurator)
The action which configures the Destroy Action.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action, Controller, and routeValues for image or directory destroy operation.
public EditorImageBrowserSettingsBuilder Destroy(string actionName, string controllerName, object routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesobjectRoute values.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action, Controller, and routeValues for image or directory destroy operation.
public EditorImageBrowserSettingsBuilder Destroy(string actionName, string controllerName, RouteValueDictionary routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesRouteValueDictionaryRoute values.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action and Controller that will handle the image or directory deletion.
public EditorImageBrowserSettingsBuilder Destroy(string actionName, string controllerName)
Name of the Action.
controllerNamestringName of the Controller.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Defines the allowed file extensions.
public EditorImageBrowserSettingsBuilder FileTypes(string value)
The value for FileTypes
Returns:EditorImageBrowserSettingsBuilder
Returns the current EditorImageBrowserSettingsBuilder instance.
Configures the URL for serving the original image.
public EditorImageBrowserSettingsBuilder Image(Action<EditorImageBrowserOperationBuilder> configurator)
The action which configures the Image Action.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action, Controller, and routeValues responsible for serving the original image.
public EditorImageBrowserSettingsBuilder Image(string actionName, string controllerName, object routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesobjectRoute values.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action, Controller, and routeValues responsible for serving the original image.
public EditorImageBrowserSettingsBuilder Image(string actionName, string controllerName, RouteValueDictionary routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesRouteValueDictionaryRoute values.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action and Controller responsible for serving the original image.
public EditorImageBrowserSettingsBuilder Image(string actionName, string controllerName)
Name of the Action.
controllerNamestringName of the Controller.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the URL responsible for serving the original image. A image name placeholder should be specified. By default the placeholder value is URL encoded. If this is not desired, use a function.
public EditorImageBrowserSettingsBuilder Image(string url)
The string URL.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Defines texts shown within the image browser.
public EditorImageBrowserSettingsBuilder Messages(Action<EditorImageBrowserMessagesSettingsBuilder> configurator)
The EditorImageBrowserMessagesSettingsBuilder for the messages setting.
Returns:EditorImageBrowserSettingsBuilder
Returns the current instance of EditorImageBrowserSettingsBuilder .
Defines the initial folder to display, relative to the root.
public EditorImageBrowserSettingsBuilder Path(string value)
The value for Path
Returns:EditorImageBrowserSettingsBuilder
Returns the current EditorImageBrowserSettingsBuilder instance.
Configures the URL for remote image read operation.
public EditorImageBrowserSettingsBuilder Read(Action<EditorImageBrowserOperationBuilder> configurator)
The action which configures the Read Action.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action, Controller, and routeValues for remote image retrieval.
public EditorImageBrowserSettingsBuilder Read(string actionName, string controllerName, object routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesobjectRoute values.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action, Controller, and routeValues for remote image retrieval.
public EditorImageBrowserSettingsBuilder Read(string actionName, string controllerName, RouteValueDictionary routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesRouteValueDictionaryRoute values.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action and Controller for remote image retrieval.
public EditorImageBrowserSettingsBuilder Read(string actionName, string controllerName)
Name of the Action.
controllerNamestringName of the Controller.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Set the object responsible for describing the image raw data format.
public EditorImageBrowserSettingsBuilder Schema(Action<EditorImageBrowserSchemaSettingsBuilder> configurator)
The EditorImageBrowserSchemaSettingsBuilder for the schema setting.
Returns:EditorImageBrowserSettingsBuilder
Returns the current instance of EditorImageBrowserSettingsBuilder .
Configures the URL for retrieving the thumbnail version of the image.
public EditorImageBrowserSettingsBuilder Thumbnail(Action<EditorImageBrowserOperationBuilder> configurator)
The action which configures the Thumbnail Action.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action, Controller, and routeValues for retrieving the thumbnail version of the image.
public EditorImageBrowserSettingsBuilder Thumbnail(string actionName, string controllerName, object routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesobjectRoute values.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action, Controller, and routeValues for retrieving the thumbnail version of the image.
public EditorImageBrowserSettingsBuilder Thumbnail(string actionName, string controllerName, RouteValueDictionary routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesRouteValueDictionaryRoute values.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action and Controller for retrieving the thumbnail version of the image. If not specified a default image icon will be shown.
public EditorImageBrowserSettingsBuilder Thumbnail(string actionName, string controllerName)
Name of the Action.
controllerNamestringName of the Controller.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Specifies the settings for loading and saving data.
public EditorImageBrowserSettingsBuilder Transport(Action<EditorImageBrowserTransportSettingsBuilder> configurator)
The EditorImageBrowserTransportSettingsBuilder for the transport setting.
Returns:EditorImageBrowserSettingsBuilder
Returns the current instance of EditorImageBrowserSettingsBuilder .
Configures the URL for images uplaod operation.
public EditorImageBrowserSettingsBuilder Upload(Action<EditorImageBrowserOperationBuilder> configurator)
The action which configures the Upload Action.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action, Controller, and routeValues for uploading new images.
public EditorImageBrowserSettingsBuilder Upload(string actionName, string controllerName, object routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesobjectRoute values.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action, Controller, and routeValues for uploading new images.
public EditorImageBrowserSettingsBuilder Upload(string actionName, string controllerName, RouteValueDictionary routeValues)
Name of the Action.
controllerNamestringName of the Controller.
routeValuesRouteValueDictionaryRoute values.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.
Sets the Action and Controller that will handle the new images upload. If not specified the Upload button will not be displayed.
public EditorImageBrowserSettingsBuilder Upload(string actionName, string controllerName)
Name of the Action.
controllerNamestringName of the Controller.
Returns:EditorImageBrowserSettingsBuilder
The current EditorImageBrowserSettingsBuilder instance.