Defines the fluent API for configuring PromptBoxFileSelectButtonSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class PromptBoxFileSelectButtonSettingsBuilder
Inheritance: objectPromptBoxFileSelectButtonSettingsBuilder
Inherited Members
Constructors
Initializes a new instance of the PromptBoxFileSelectButtonSettingsBuilder class.
public PromptBoxFileSelectButtonSettingsBuilder(PromptBoxFileSelectButtonSettings container)
Properties
protected PromptBoxFileSelectButtonSettings Container { get; }
Methods
Defines the file types that can be selected using the file input.
public PromptBoxFileSelectButtonSettingsBuilder Accept(string value)
The value for Accept
Returns:PromptBoxFileSelectButtonSettingsBuilder
Returns the current PromptBoxFileSelectButtonSettingsBuilder instance.
Enables or disables the File Select button.
public PromptBoxFileSelectButtonSettingsBuilder Enable(bool value)
The value for Enable
Returns:PromptBoxFileSelectButtonSettingsBuilder
Returns the current PromptBoxFileSelectButtonSettingsBuilder instance.
Defines the fill mode for the File Select button.
public PromptBoxFileSelectButtonSettingsBuilder FillMode(ButtonFillMode value)
The value for FillMode
Returns:PromptBoxFileSelectButtonSettingsBuilder
Returns the current PromptBoxFileSelectButtonSettingsBuilder instance.
Defines the font icon name for the File Select button.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 PromptBoxFileSelectButtonSettingsBuilder Icon(Action<PromptBoxFileSelectButtonIconSettingsBuilder> configurator)
The PromptBoxFileSelectButtonIconSettingsBuilder for the icon setting.
Returns:PromptBoxFileSelectButtonSettingsBuilder
Returns the current instance of PromptBoxFileSelectButtonSettingsBuilder .
Defines the font icon name for the File Select button.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 PromptBoxFileSelectButtonSettingsBuilder Icon(string icon)
The icon.
Returns:PromptBoxFileSelectButtonSettingsBuilder
Returns the current instance of PromptBoxFileSelectButtonSettingsBuilder .
Enables multiple file selection.
public PromptBoxFileSelectButtonSettingsBuilder Multiple()
PromptBoxFileSelectButtonSettingsBuilder
Returns the current PromptBoxFileSelectButtonSettingsBuilder instance.
Enables multiple file selection.
public PromptBoxFileSelectButtonSettingsBuilder Multiple(bool value)
The value for Multiple
Returns:PromptBoxFileSelectButtonSettingsBuilder
Returns the current PromptBoxFileSelectButtonSettingsBuilder instance.
Defines file restrictions for the file selection.
public PromptBoxFileSelectButtonSettingsBuilder Restrictions(Action<PromptBoxFileSelectButtonRestrictionsSettingsBuilder> configurator)
The PromptBoxFileSelectButtonRestrictionsSettingsBuilder for the restrictions setting.
Returns:PromptBoxFileSelectButtonSettingsBuilder
Returns the current instance of PromptBoxFileSelectButtonSettingsBuilder .
Defines the border radius for the File Select button.
public PromptBoxFileSelectButtonSettingsBuilder Rounded(Rounded value)
The value for Rounded
Returns:PromptBoxFileSelectButtonSettingsBuilder
Returns the current PromptBoxFileSelectButtonSettingsBuilder instance.
Defines the size of the File Select button.
public PromptBoxFileSelectButtonSettingsBuilder Size(ComponentSize value)
The value for Size
Returns:PromptBoxFileSelectButtonSettingsBuilder
Returns the current PromptBoxFileSelectButtonSettingsBuilder instance.
Defines the theme color for the File Select button.
public PromptBoxFileSelectButtonSettingsBuilder ThemeColor(ThemeColor value)
The value for ThemeColor
Returns:PromptBoxFileSelectButtonSettingsBuilder
Returns the current PromptBoxFileSelectButtonSettingsBuilder instance.