FloatingActionButtonBuilder
Properties
WriteAction - Func
Methods
AlignOffset(System.Action)
Specifies the horizontal and vertical offset of the FloatingActionButton.
Parameters
configurator - System.Action<FloatingActionButtonAlignOffsetBuilder>
The configurator for the AlignOffset setting.
RETURNS
Returns the current FloatingActionButtonBuilder instance.
Example
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.AlignOffset(ao=>ao.Horizontal(50).Vertical(50))
)
Enabled(System.Boolean)
Specifies whether the FloatingActionButton is enabled (true) or disabled (false).
Parameters
value - System.Boolean
The value for Enabled
RETURNS
Returns the current FloatingActionButtonBuilder instance.
Example
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.Enabled(false)
)
Icon(System.String)
Specifies the name for an existing icon in a Kendo UI theme that is rendered in the FloatingActionButton.See the Web Font Icons help article for more details on Kendo UI icons.
Parameters
value - System.String
The value for Icon
RETURNS
Returns the current FloatingActionButtonBuilder instance.
Example
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.Icon("plus")
)
Items(System.Action)
Specifies the speed-dial items that will be rendered in a popup container anchored to the FloatingActionButton.**Note: when using the items configuration, clicking on the FloatingActionButton will open the popup containing the speed-dial list.
Parameters
configurator - System.Action<FloatingActionButtonItemFactory>
The configurator for the items setting.
RETURNS
Returns the current instance of FloatingActionButtonBuilder .
Text(System.String)
Specifies the text of the FloatingActionButton. Default is empty string.
Parameters
value - System.String
The value for Text
RETURNS
Returns the current FloatingActionButtonBuilder instance.
Example
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.Text("Send")
)
Visible(System.Boolean)
Specifies if the FloatingActionButton is visible initially.
Parameters
value - System.Boolean
The value for Visible
RETURNS
Returns the current FloatingActionButtonBuilder instance.
Example
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.Visible(false)
)
Size(Kendo.Mvc.UI.FloatingActionButtonSize)
Defines the size of the component
Parameters
value - FloatingActionButtonSize
The value for Size
RETURNS
Returns the current FloatingActionButtonBuilder instance.
Example
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.Size(FloatingActionButtonSize.Medium)
)
Align(Kendo.Mvc.UI.FloatingActionButtonAlign)
Defines the alignment of the component
Parameters
value - FloatingActionButtonAlign
The value for Align
RETURNS
Returns the current FloatingActionButtonBuilder instance.
Example
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.Align(FloatingActionButtonAlign.BottomEnd)
)
PositionMode(Kendo.Mvc.UI.FloatingActionButtonPositionMode)
Defines the position of the component
Parameters
value - FloatingActionButtonPositionMode
The value for PositionMode
RETURNS
Returns the current FloatingActionButtonBuilder instance.
Example
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.PositionMode(FloatingActionButtonPositionMode.Absolute)
)
ThemeColor(Kendo.Mvc.UI.FloatingActionButtonThemeColor)
Defines the theme color of the component
Parameters
value - FloatingActionButtonThemeColor
The value for ThemeColor
RETURNS
Returns the current FloatingActionButtonBuilder instance.
Example
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.ThemeColor(FloatingActionButtonThemeColor.Primary)
)
FillMode(Kendo.Mvc.UI.FloatingActionButtonFillMode)
Sets a value controlling how the color is applied.
Parameters
value - FloatingActionButtonFillMode
The value for FillMode
RETURNS
Returns the current FloatingActionButtonBuilder instance.
Example
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.FillMode(FloatingActionButtonFillMode.Solid)
)
Rounded(Kendo.Mvc.UI.FloatingActionButtonRounded)
Sets a value controlling the border radius.
Parameters
value - FloatingActionButtonRounded
The value for Rounded
RETURNS
Returns the current FloatingActionButtonBuilder instance.
Example
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.Rounded(FloatingActionButtonRounded.Medium)
)
Events(System.Action)
Configures the client-side events.
Parameters
configurator - System.Action<FloatingActionButtonEventBuilder>
The client events action.
RETURNS
Returns the current FloatingActionButtonBuilder instance.
Example
@(Html.Kendo().FloatingActionButton()
.Name("FloatingActionButton")
.Events(events => events
.Click("onClick")
)
)
ToComponent()
Returns the internal view component.
RETURNS
The instance that represents the component.
Expression(System.String)
Sets the name of the component.
Parameters
modelExpression - System.String
The name.
RETURNS
Returns the current instance.
Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)
Sets the name of the component.
Parameters
modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
The name.
RETURNS
Returns the current instance.
Name(System.String)
Sets the name of the component.
Parameters
componentName - System.String
The name.
RETURNS
Returns the current instance.
Deferred(System.Boolean)
Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean,System.Boolean)
Parameters
deferred - System.Boolean
RETURNS
Returns a DeferredWidgetBuilder instance.
HtmlAttributes(System.Object)
Sets the HTML attributes.
Parameters
attributes - System.Object
The HTML attributes.
RETURNS
Returns the current instance.
HtmlAttributes(System.Collections.Generic.IDictionary)
Sets the HTML attributes.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The HTML attributes.
RETURNS
Returns the current instance.
ScriptAttributes(System.Object,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Object
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
RETURNS
Returns the current instance.
ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
RETURNS
Returns the current instance.
Render()
Renders the component in place.
ToHtmlString()
Returns the HTML representation of the component.
WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)
Parameters
writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder
ToClientTemplate()
Returns the client template for the component.
AsModule(System.Boolean)
Specifies whether the initialization script of the component will be rendered as a JavaScript module.
Parameters
value - System.Boolean
RETURNS
Returns the current instance.