Defines the fluent interface for configuring the EditorFileBrowserOperation options.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class EditorFileBrowserOperationBuilder
Inheritance: objectEditorFileBrowserOperationBuilder
Inherited Members
Constructors
Initializes a new instance of the EditorFileBrowserOperationBuilder class.
public EditorFileBrowserOperationBuilder(EditorFileBrowserOperation operation, ViewContext viewContext, IUrlGenerator urlGenerator)
The operation object
viewContextViewContextThe view context
urlGeneratorIUrlGeneratorAn url generator instance
Methods
Sets the action, contoller and route values for the operation.
public EditorFileBrowserOperationBuilder Action(string actionName, string controllerName, RouteValueDictionary routeValues)
Action name
controllerNamestringController name
routeValuesRouteValueDictionaryRoute values
Returns:Sets a JavaScript function which will return additional parameters to be sent to the server.
public EditorFileBrowserOperationBuilder Data(string handler)
JavaScript function name
Returns:Sets the route values for the operation.
public EditorFileBrowserOperationBuilder Route(RouteValueDictionary routeValues)
Route values
Returns:Sets the route name and values for the operation.
public EditorFileBrowserOperationBuilder Route(string routeName, RouteValueDictionary routeValues)
Route name
routeValuesRouteValueDictionaryRoute values
Returns:Sets the route name for the operation.
public EditorFileBrowserOperationBuilder Route(string routeName)
Specifies an absolute or relative URL for the operation.
public EditorFileBrowserOperationBuilder Url(string url)
Absolute or relative URL for the operation
Returns:Sets a JavaScript function or the name of a function that returns the URL for the image.
public EditorFileBrowserOperationBuilder UrlHandler(string handler)
The JavaScript function name
Returns: