SliderBuilder
Properties
WriteAction - Func
Methods
Tooltip(System.Boolean)
Display tooltip while drag.
Parameters
value - System.Boolean
The boolean value that disables or enables the tooltip.
RETURNS
Returns the current SliderBuilder instance.
Example
@( Html.Kendo().Slider()
.Name("slider")
.Tooltip(false)
)
DecreaseButtonTitle(System.String)
The title of the decrease button of the Slider.
Parameters
value - System.String
The value for DecreaseButtonTitle
RETURNS
Returns the current SliderBuilder instance.
DragHandleTitle(System.String)
The title of the drag handle of the Slider.
Parameters
value - System.String
The value for DragHandleTitle
RETURNS
Returns the current SliderBuilder instance.
IncreaseButtonTitle(System.String)
The title of the increase button of the Slider.
Parameters
value - System.String
The value for IncreaseButtonTitle
RETURNS
Returns the current SliderBuilder instance.
LargeStep(System.Nullable)
The delta with which the value will change when the user presses the Page Up or Page Down key (the drag handle must be focused). Note: largeStep will also set a large tick for every large step.Must be a positive number, larger than smallStep.
Parameters
value - System.Nullable<T>
The value for LargeStep
RETURNS
Returns the current SliderBuilder instance.
Max(System.Nullable)
The maximum value of the Slider.
Parameters
value - System.Nullable<T>
The value for Max
RETURNS
Returns the current SliderBuilder instance.
Min(System.Nullable)
The minimum value of the Slider.
Parameters
value - System.Nullable<T>
The value for Min
RETURNS
Returns the current SliderBuilder instance.
ShowButtons(System.Boolean)
Can be used to show (true) or hide (false) the increase and decrease buttons of a Slider.
Parameters
value - System.Boolean
The value for ShowButtons
RETURNS
Returns the current SliderBuilder instance.
SmallStep(System.Nullable)
The small step value of the Slider. Must be a positive number, otherwise an Javascript exception will be thrown.The small step value determines the amount of Slider value change when the end user clicks on the increase or decrease buttons of the Slider;; presses the arrow keys (the drag handle must be focused); or drags the drag handle..
Parameters
value - System.Nullable<T>
The value for SmallStep
RETURNS
Returns the current SliderBuilder instance.
Tooltip(System.Action)
Configuration of the Slider tooltip.
Parameters
configurator - System.Action<SliderTooltipSettingsBuilder>
The configurator for the tooltip setting.
RETURNS
Returns the current instance of SliderBuilder .
Value(System.Nullable)
The underlying value of the Slider.
Parameters
value - System.Nullable<T>
The value for Value
RETURNS
Returns the current SliderBuilder instance.
Orientation(Kendo.Mvc.UI.SliderOrientation)
The orientation of a Slider
Parameters
value - SliderOrientation
The value for Orientation
RETURNS
Returns the current SliderBuilder instance.
TickPlacement(Kendo.Mvc.UI.SliderTickPlacement)
Denotes the location of the tick marks in the Slider
Parameters
value - SliderTickPlacement
The value for TickPlacement
RETURNS
Returns the current SliderBuilder instance.
Events(System.Action)
Configures the client-side events.
Parameters
configurator - System.Action<SliderEventBuilder>
The client events action.
RETURNS
Returns the current SliderBuilder instance.
Example
@(Html.Kendo().Slider()
.Name("Slider")
.Events(events => events
.Change("onChange")
)
)
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
RETURNS
Returns the current instance.
Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)
Sets the name of the component.
Parameters
modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
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
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.