Defines the fluent API for configuring ImageEditorToolbarSettingsItem
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ImageEditorToolbarSettingsItemBuilder
Inheritance: objectImageEditorToolbarSettingsItemBuilder
Inherited Members
Constructors
ImageEditorToolbarSettingsItemBuilder method.
public ImageEditorToolbarSettingsItemBuilder(ImageEditorToolbarSettingsItem container)
Properties
Gets the settings being configured.
protected ImageEditorToolbarSettingsItem Container { get; }
Methods
Specifies the click handler of the button.
public ImageEditorToolbarSettingsItemBuilder Click(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies the click handler of the button.
public ImageEditorToolbarSettingsItemBuilder Click(string handler)
The name of the JavaScript function that will be evaluated.
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies the command of the button.
public ImageEditorToolbarSettingsItemBuilder Command(string value)
The value for Command
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies whether the control is initially enabled or disabled. Default value is "true".
public ImageEditorToolbarSettingsItemBuilder Enable(bool value)
The value for Enable
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Determines if a button is visible or hidden. By default buttons are visible.
public ImageEditorToolbarSettingsItemBuilder Hidden()
ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Determines if a button is visible or hidden. By default buttons are visible.
public ImageEditorToolbarSettingsItemBuilder Hidden(bool value)
The value for Hidden
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies the HTML attributes of a ToolBar button.
public ImageEditorToolbarSettingsItemBuilder HtmlAttributes(IDictionary<string, object> value)
The value for HtmlAttributes
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies the HTML attributes of a ToolBar button.
public ImageEditorToolbarSettingsItemBuilder HtmlAttributes(object value)
The value for HtmlAttributes
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public ImageEditorToolbarSettingsItemBuilder Icon(Action<ImageEditorToolbarItemIconSettingsBuilder> configurator)
The ImageEditorToolbarItemIconSettingsBuilder for the icon setting.
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current instance of ImageEditorToolbarSettingsItemBuilder .
Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public ImageEditorToolbarSettingsItemBuilder Icon(string icon)
The icon.
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current instance of ImageEditorToolbarSettingsItemBuilder .
Specifies the ID of the button.
public ImageEditorToolbarSettingsItemBuilder Id(string value)
The value for Id
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
If set, the ToolBar will render an image with the specified URL in the button.
public ImageEditorToolbarSettingsItemBuilder ImageUrl(string value)
The value for ImageUrl
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies the name of the button.
public ImageEditorToolbarSettingsItemBuilder Name(string value)
The value for Name
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies the command options of the button.
public ImageEditorToolbarSettingsItemBuilder Options(string value)
The value for Options
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies the overflow of the button.
public ImageEditorToolbarSettingsItemBuilder Overflow(string value)
The value for Overflow
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies whether the button is primary. Primary buttons receive different styling.
public ImageEditorToolbarSettingsItemBuilder Primary()
ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies whether the button is primary. Primary buttons receive different styling.
public ImageEditorToolbarSettingsItemBuilder Primary(bool value)
The value for Primary
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies where the button icon will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).
public ImageEditorToolbarSettingsItemBuilder ShowIcon(string value)
The value for ShowIcon
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies where the text will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).
public ImageEditorToolbarSettingsItemBuilder ShowText(string value)
The value for ShowText
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.
public ImageEditorToolbarSettingsItemBuilder SpriteCssClass(string value)
The value for SpriteCssClass
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ImageEditorToolbarSettingsItemBuilder Template(string value)
The value for Template
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ImageEditorToolbarSettingsItemBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ImageEditorToolbarSettingsItemBuilder TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ImageEditorToolbarSettingsItemBuilder TemplateId(string templateId)
The ID of the template element for Template
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ImageEditorToolbarSettingsItemBuilder TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Sets the text of the button.
public ImageEditorToolbarSettingsItemBuilder Text(string value)
The value for Text
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies if the button is togglable, e.g. has a selected and unselected state.
public ImageEditorToolbarSettingsItemBuilder Togglable()
ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies if the button is togglable, e.g. has a selected and unselected state.
public ImageEditorToolbarSettingsItemBuilder Togglable(bool value)
The value for Togglable
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.
Specifies the type of the button.
public ImageEditorToolbarSettingsItemBuilder Type(string value)
The value for Type
Returns:ImageEditorToolbarSettingsItemBuilder
Returns the current ImageEditorToolbarSettingsItemBuilder instance.