Class SliderBuilder
Inheritance
System.Object
SliderBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.EJ2.dll
public class SliderBuilder : ControlBuilder
Constructors
Declaration
Declaration
public SliderBuilder(Slider model)
Parameters
Type |
Name |
Description |
Slider |
model |
|
Fields
Declaration
Field Value
Properties
Declaration
public IDictionary<string, object> HtmlAttr { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|
Declaration
public string ID { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public override TextWriter Output { get; set; }
Property Value
Type |
Description |
System.IO.TextWriter |
|
Overrides
Methods
We can trigger change event whenever Slider value is changed.
In other term, this event will be triggered while drag the slider thumb.
{% codeBlock src='slider/changeEvent/index.md' %}{% endcodeBlock %}
Declaration
public SliderBuilder Change(string change)
Parameters
Type |
Name |
Description |
System.String |
change |
|
Returns
Fires whenever the Slider value is changed.
In other term, this event will be triggered, while drag the slider thumb completed.
Declaration
public SliderBuilder Changed(string changed)
Parameters
Type |
Name |
Description |
System.String |
changed |
|
Returns
Specifies the color to the slider based on given value.
Declaration
public SliderBuilder ColorRange(object colorRange)
Parameters
Type |
Name |
Description |
System.Object |
colorRange |
|
Returns
Triggers when the Slider is successfully created.
Declaration
public SliderBuilder Created(string created)
Parameters
Type |
Name |
Description |
System.String |
created |
|
Returns
Specifies the custom classes to be added to the element used to customize the slider.
{% codeBlock src='slider/cssClass/index.md' %}{% endcodeBlock %}
Declaration
public SliderBuilder CssClass(string cssClass)
Parameters
Type |
Name |
Description |
System.String |
cssClass |
|
Returns
Specifies an array of slider values in number or string type.
The min and max step values are not considered.
Declaration
public SliderBuilder CustomValues(double[] customValues)
Parameters
Type |
Name |
Description |
System.Double[] |
customValues |
|
Returns
Specifies an array of slider values in number or string type.
The min and max step values are not considered.
Declaration
public SliderBuilder CustomValues(object customValues)
Parameters
Type |
Name |
Description |
System.Object |
customValues |
|
Returns
Specifies an array of slider values in number or string type.
The min and max step values are not considered.
Declaration
public SliderBuilder CustomValues(string[] customValues)
Parameters
Type |
Name |
Description |
System.String[] |
customValues |
|
Returns
Enable or Disable the animation for slider movement.
Declaration
public SliderBuilder EnableAnimation(bool enableAnimation = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableAnimation |
|
Returns
Enable or Disable the slider.
Declaration
public SliderBuilder Enabled(bool enabled = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enabled |
|
Returns
Defines whether to allow the cross-scripting site or not.
Declaration
public SliderBuilder EnableHtmlSanitizer(bool enableHtmlSanitizer = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableHtmlSanitizer |
|
Returns
Enable or disable persisting component's state between page reloads.
Declaration
public SliderBuilder EnablePersistence(bool enablePersistence = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enablePersistence |
|
Returns
Enable or disable rendering component in right to left direction.
Declaration
public SliderBuilder EnableRtl(bool enableRtl = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableRtl |
|
Returns
Allows additional HTML attributes such as title, name, etc., and
accepts n number of attributes in a key-value pair format.
Declaration
public SliderBuilder HtmlAttributes(object htmlAttributes)
Parameters
Type |
Name |
Description |
System.Object |
htmlAttributes |
|
Returns
Specified the limit within which the slider to be moved.
Refer the documentation here
to know more about this property.
Declaration
public SliderBuilder Limits(SliderLimitData limits)
Parameters
Returns
Declaration
public SliderBuilder Limits(Action<SliderLimitDataBuilder> limits)
Parameters
Returns
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public SliderBuilder Locale(string locale)
Parameters
Type |
Name |
Description |
System.String |
locale |
|
Returns
Gets/Sets the maximum value of the slider.
Declaration
public SliderBuilder Max(double max)
Parameters
Type |
Name |
Description |
System.Double |
max |
|
Returns
Gets/Sets the minimum value of the slider.
Declaration
public SliderBuilder Min(double min)
Parameters
Type |
Name |
Description |
System.Double |
min |
|
Returns
Specifies whether to render the slider in vertical or horizontal orientation.
Refer the documentation here
to know more about this property.
Declaration
public SliderBuilder Orientation(SliderOrientation orientation)
Parameters
Returns
Declaration
public SliderBuilder Readonly(bool readOnly = true)
Parameters
Type |
Name |
Description |
System.Boolean |
readOnly |
|
Returns
Declaration
public HtmlString Render()
Returns
Type |
Description |
System.Web.HtmlString |
|
Triggers when the ticks are rendered on the Slider.
{% codeBlock src='slider/renderedticksEvent/index.md' %}{% endcodeBlock %}
Declaration
public SliderBuilder RenderedTicks(string renderedTicks)
Parameters
Type |
Name |
Description |
System.String |
renderedTicks |
|
Returns
Triggers on rendering the ticks element in the Slider,
which is used to customize the ticks labels dynamically.
{% codeBlock src='slider/renderingticksEvent/index.md' %}{% endcodeBlock %}
Declaration
public SliderBuilder RenderingTicks(string renderingTicks)
Parameters
Type |
Name |
Description |
System.String |
renderingTicks |
|
Returns
Specifies whether to show or hide the increase/decrease buttons
of Slider to change the slider value.
Refer the documentation here
to know more about this property.
Declaration
public SliderBuilder ShowButtons(bool showButtons = true)
Parameters
Type |
Name |
Description |
System.Boolean |
showButtons |
|
Returns
Specifies the step value for each value change when the increase / decrease
button is clicked or on arrow keys press or on dragging the thumb.
Refer the documentation here
to know more about this property.
Declaration
public SliderBuilder Step(double step)
Parameters
Type |
Name |
Description |
System.Double |
step |
|
Returns
It is used to render the slider ticks options such as placement and step values.
Refer the documentation here
to know more about this property with demo.
{% codeBlock src='slider/ticks/index.md' %}{% endcodeBlock %}
{% codeBlock src="slider/ticks-api/index.ts" %}{% endcodeBlock %}
Declaration
public SliderBuilder Ticks(SliderTicksData ticks)
Parameters
Returns
Declaration
public SliderBuilder Ticks(Action<SliderTicksDataBuilder> ticks)
Parameters
Returns
Specifies the visibility, position of the tooltip over the slider element.
Declaration
public SliderBuilder Tooltip(SliderTooltipData tooltip)
Parameters
Returns
Declaration
public SliderBuilder Tooltip(Action<SliderTooltipDataBuilder> tooltip)
Parameters
Returns
Triggers when the Sider tooltip value is changed.
{% codeBlock src='slider/tooltipChangeEvent/index.md' %}{% endcodeBlock %}
Declaration
public SliderBuilder TooltipChange(string tooltipChange)
Parameters
Type |
Name |
Description |
System.String |
tooltipChange |
|
Returns
Defines the type of the Slider. The available options are:
default - Allows to a single value in the Slider.
minRange - Allows to select a single value in the Slider. It display’s a shadow from the start to the current value.
range - Allows to select a range of values in the Slider. It displays shadow in-between the selection range.
{% codeBlock src='slider/types/index.md' %}{% endcodeBlock %}
Declaration
public SliderBuilder Type(SliderType type)
Parameters
Returns
It is used to denote the current value of the Slider.
The value should be specified in array of number when render Slider type as range.
Declaration
public SliderBuilder Value(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
It is used to denote the current value of the Slider.
The value should be specified in array of number when render Slider type as range.
Declaration
public SliderBuilder Value(double[] value)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
Returns
It is used to denote the current value of the Slider.
The value should be specified in array of number when render Slider type as range.
Declaration
public SliderBuilder Value(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Specifies the width of the Slider.
Declaration
public SliderBuilder Width(double width)
Parameters
Type |
Name |
Description |
System.Double |
width |
|
Returns
Specifies the width of the Slider.
Declaration
public SliderBuilder Width(string width)
Parameters
Type |
Name |
Description |
System.String |
width |
|
Returns