Defines the fluent API for configuring the Kendo UI StackLayoutContainer
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class StackLayoutContainerBuilder
Inheritance: objectStackLayoutContainerBuilder
Inherited Members
Constructors
Initializes a new instance of the StackLayoutContainerBuilder class.
public StackLayoutContainerBuilder(StackLayoutContainer container)
The StackLayoutContainer instance to configure.
Properties
Gets the StackLayoutContainer instance being configured.
protected StackLayoutContainer Container { get; }
Methods
Sets the content of the container using an Action.
public StackLayoutContainerBuilder Content(Action content)
The Action that will be executed when rendering the container.
Returns:Returns the current StackLayoutContainerBuilder instance.
This overload is typically used with Razor syntax to define inline template content.
Sets the content of the container using a template function.
public StackLayoutContainerBuilder Content(Func<object, object> content)
The template function that will be executed to generate the container content.
Returns:Returns the current StackLayoutContainerBuilder instance.
This overload accepts a function that takes a model object and returns the generated content.
Sets the HTML content of the container.
public StackLayoutContainerBuilder Content(string content)
The HTML string to use as the container's content.
Returns:Returns the current StackLayoutContainerBuilder instance.
This overload accepts a string that will be directly rendered as HTML content.