Defines the fluent API for configuring the ImageBrowser.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class EditorImageBrowserSettingsBuilder
Inheritance: objectEditorImageBrowserSettingsBuilder
Inherited Members
Constructors
Initializes a new instance of the EditorImageBrowserSettingsBuilder class.
public EditorImageBrowserSettingsBuilder(EditorImageBrowserSettings settings, ViewContext viewContext, IUrlGenerator urlGenerator)
The Image Browser settings.
viewContextViewContextThe view context
urlGeneratorIUrlGeneratorThe URL generator.
Methods
Configures the URL for directory create operation.
public EditorImageBrowserSettingsBuilder Create(Action<EditorImageBrowserOperationBuilder> 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 image or directory destroy operation.
public EditorImageBrowserSettingsBuilder Destroy(Action<EditorImageBrowserOperationBuilder> configurator)
The action which configures the Destroy Action.
Returns:Sets the Action, Controller, and routeValues for image or directory destroy operation.
Sets the Action, Controller, and routeValues for image or directory destroy operation.
Defines the allowed file extensions. Default: ".png, .gif, .jpg, .jpeg"
public EditorImageBrowserSettingsBuilder FileTypes(string value)
The file types.
Returns:Configures the URL for serving the original image.
public EditorImageBrowserSettingsBuilder Image(Action<EditorImageBrowserOperationBuilder> configurator)
The action which configures the Image Action.
Returns:Sets the Action, Controller, and routeValues responsible for serving the original image.
Sets the Action, Controller, and routeValues responsible for serving the original image.
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:Configures the URL for remote image read operation.
public EditorImageBrowserSettingsBuilder Read(Action<EditorImageBrowserOperationBuilder> configurator)
The action which configures the Read Action.
Returns:Sets the Action, Controller, and routeValues for remote image retrieval.
Sets the Action, Controller, and routeValues for remote image retrieval.
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:Sets the Action, Controller, and routeValues for retrieving the thumbnail version of the image.
Sets the Action, Controller, and routeValues for retrieving the thumbnail version of the image.
Sets the Action and Controller for retrieving the thumbnail version of the image. If not specified a default image icon will be shown.
Configures the URL for images uplaod operation.
public EditorImageBrowserSettingsBuilder Upload(Action<EditorImageBrowserOperationBuilder> configurator)
The action which configures the Upload Action.
Returns:Sets the Action, Controller, and routeValues for uploading new images.
Sets the Action, Controller, and routeValues for uploading new images.
Sets the Action and Controller that will handle the new images upload. If not specified the Upload button will not be displayed.