DialogBuilder
Defines the fluent API for configuring the Kendo UI Dialog
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DialogBuilder : WidgetBuilderBase<Dialog, DialogBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Dialog, DialogBuilder>DialogBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the DialogBuilder class.
Methods
A collection of objects containing text, action and primary attributes used to specify the dialog buttons.
public DialogBuilder Actions(Action<DialogActionFactory> configurator)
The DialogActionFactory for the actions setting.
Returns:Returns the current instance of DialogBuilder .
Configures the animation effects of the panelbar.
public DialogBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action that configures the animation.
Returns:A DialogBuilder instance for method chaining.
Configures the animation effects of the window.
public DialogBuilder Animation(bool enable)
Whether the component animation is enabled.
Returns:A DialogBuilder instance for method chaining.
Specifies the possible layout of the action buttons in the Dialog.Note: Stretched layout has no effect in browsers, like IE9, that do not support flexbox.Possible values are: normal or stretched.
public DialogBuilder ButtonLayout(string value)
The value for ButtonLayout
Returns:Returns the current DialogBuilder instance.
Specifies whether a close button should be rendered at the top corner of the dialog.
public DialogBuilder Closable(bool value)
The value for Closable
Returns:Returns the current DialogBuilder instance.
Specifies width of the dialog.
public DialogBuilder Content(Action action)
The value for Width
Returns:A DialogBuilder instance for method chaining.
Specifies width of the dialog.
public DialogBuilder Content(Func<object, object> value)
The value for Width
Returns:A DialogBuilder instance for method chaining.
The content of the dialog
public DialogBuilder Content(string value)
The value for Content
Returns:Returns the current DialogBuilder instance.
Configures the client-side events.
public DialogBuilder Events(Action<DialogEventBuilder> configurator)
The client events action.
Returns:Returns the current DialogBuilder instance.
Specifies height of the dialog.
public DialogBuilder Height(double value)
The value for Height
Returns:A DialogBuilder instance for method chaining.
Specifies height of the dialog.
public DialogBuilder Height(string value)
The value for Height
Returns:A DialogBuilder instance for method chaining.
The maximum height (in pixels) that may be achieved by resizing the dialog.
public DialogBuilder MaxHeight(double value)
The value for MaxHeight
Returns:A DialogBuilder instance for method chaining.
The maximum height (in pixels) that may be achieved by resizing the dialog.
public DialogBuilder MaxHeight(string value)
The value for MaxHeight
Returns:A DialogBuilder instance for method chaining.
The maximum width (in pixels) that may be achieved by resizing the dialog.
public DialogBuilder MaxWidth(double value)
The value for MaxWidth
Returns:A DialogBuilder instance for method chaining.
The maximum width (in pixels) that may be achieved by resizing the dialog.
public DialogBuilder MaxWidth(string value)
The value for MaxWidth
Returns:A DialogBuilder instance for method chaining.
Defines the text of the labels that are shown within the dialog. Used primarily for localization.
public DialogBuilder Messages(Action<DialogMessagesSettingsBuilder> configurator)
The DialogMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of DialogBuilder .
The minimum height (in pixels) that may be achieved by resizing the dialog.
public DialogBuilder MinHeight(double value)
The value for MinHeight
Returns:A DialogBuilder instance for method chaining.
The minimum height (in pixels) that may be achieved by resizing the dialog.
public DialogBuilder MinHeight(string value)
The value for MinHeight
Returns:A DialogBuilder instance for method chaining.
The minimum width (in pixels) that may be achieved by resizing the dialog.
public DialogBuilder MinWidth(double value)
The value for MinWidth
Returns:A DialogBuilder instance for method chaining.
The minimum width (in pixels) that may be achieved by resizing the dialog.
public DialogBuilder MinWidth(string value)
The value for MinWidth
Returns:A DialogBuilder instance for method chaining.
Specifies whether the dialog should show a modal overlay over the page.
public DialogBuilder Modal(Action<DialogModalSettingsBuilder> configurator)
The configurator for the modal setting.
Returns:A DialogBuilder instance for method chaining.
Specifies whether the dialog should show a modal overlay over the page.
public DialogBuilder Modal(bool enabled)
Enables or disables the modal option.
Returns:A DialogBuilder instance for method chaining.
Set predefined size to the dialog. The width and height configuration options override the predefined size.Possible values are: auto; small; medium or large.
public DialogBuilder Size(string value)
The value for Size
Returns:Returns the current DialogBuilder instance.
Allows title to be shown / hidden
public DialogBuilder Title(bool show)
The value that configures the visibility of the title.
Returns:A DialogBuilder instance for method chaining.
Sets title, which appears in the header of the dialog.
public DialogBuilder Title(string title)
The value that configures the title of the dialog.
Returns:A DialogBuilder instance for method chaining.
Specifies whether the dialog will be initially visible.
public DialogBuilder Visible(bool value)
The value for Visible
Returns:Returns the current DialogBuilder instance.
Specifies width of the dialog.
public DialogBuilder Width(double value)
The value for Width
Returns:A DialogBuilder instance for method chaining.
Specifies width of the dialog.
public DialogBuilder Width(string value)
The value for Width
Returns:A DialogBuilder instance for method chaining.