A slider component used to select numeric value within a range.

Inheritance

Implements
  • IComponent
  • IHandleEvent
  • IHandleAfterRender
  • JsonSerializable
  • IDisposable

constructor

public IgbSlider()

Returns IgbSlider

Inherited from: IgbSliderBase

Gets the components default event behavior.

protected override ControlEventBehavior DefaultEventBehavior { get; }

Inherited from: IgbSliderBase

The minimum value of the slider scale. Defaults to 0. If min is greater than max the call is a no-op. If labels are provided (projected), then min is always set to 0. If lowerBound ends up being less than than the current min value, it is automatically assigned the new min value.

[Parameter]
public double Min { get; set; }

Inherited from: IgbSliderBase

The maximum value of the slider scale. Defaults to 100. If max is less than min the call is a no-op. If labels are provided (projected), then max is always set to the number of labels. If upperBound ends up being greater than than the current max value, it is automatically assigned the new max value.

[Parameter]
public double Max { get; set; }

Inherited from: IgbSliderBase

The lower bound of the slider value. If not set, the min value is applied.

[Parameter]
public double LowerBound { get; set; }

Inherited from: IgbSliderBase

The upper bound of the slider value. If not set, the max value is applied.

[Parameter]
public double UpperBound { get; set; }

Inherited from: IgbSliderBase

Disables the UI interactions of the slider.

[Parameter]
public bool Disabled { get; set; }

Inherited from: IgbSliderBase

Marks the slider track as discrete so it displays the steps. If the step is 0, the slider will remain continuos even if discreteTrack is true.

[Parameter]
public bool DiscreteTrack { get; set; }

Inherited from: IgbSliderBase

Hides the thumb tooltip.

[Parameter]
public bool HideTooltip { get; set; }

Inherited from: IgbSliderBase

Specifies the granularity that the value must adhere to. If set to 0 no stepping is implied and any value in the range is allowed. If labels are provided (projected) then the step is always assumed to be 1 since it is a discrete slider.

[Parameter]
public double Step { get; set; }

Inherited from: IgbSliderBase

The number of primary ticks. It defaults to 0 which means no primary ticks are displayed.

[Parameter]
public double PrimaryTicks { get; set; }

Inherited from: IgbSliderBase

The number of secondary ticks. It defaults to 0 which means no secondary ticks are displayed.

[Parameter]
public double SecondaryTicks { get; set; }

Inherited from: IgbSliderBase

Changes the orientation of the ticks.

[Parameter]
public SliderTickOrientation TickOrientation { get; set; }

Inherited from: IgbSliderBase

Hides the primary tick labels.

[Parameter]
public bool HidePrimaryLabels { get; set; }

Inherited from: IgbSliderBase

Hides the secondary tick labels.

[Parameter]
public bool HideSecondaryLabels { get; set; }

Inherited from: IgbSliderBase

The locale used to format the thumb and tick label values in the slider.

[Parameter]
public string Locale { get; set; }

Inherited from: IgbSliderBase

String format used for the thumb and tick label values in the slider.

[Parameter]
public string ValueFormat { get; set; }

Inherited from: IgbSliderBase

The degrees for the rotation of the tick labels. Defaults to 0.

[Parameter]
public SliderTickLabelRotation TickLabelRotation { get; set; }

Inherited from: IgbSliderBase

Number format options used for the thumb and tick label values in the slider.

[Parameter]
public IgbNumberFormatSpecifier ValueFormatOptions { get; set; }

Inherited from: BaseRendererControl

[Inject]
protected IIgniteUIBlazor IgBlazor { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public string Height { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public string Width { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public string Class { get; set; }

Inherited from: BaseRendererControl

[Parameter(CaptureUnmatchedValues = true)]
public Dictionary<string, object> AdditionalAttributes { get; set; }

Inherited from: BaseRendererControl

protected virtual string ParentTypeName { get; }

Inherited from: BaseRendererControl

Gets or sets how events are bubbled up from JavaScript to Blazor.

[Parameter]
public ControlEventBehavior EventBehavior { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public RenderFragment ChildContent { get; set; }

Inherited from: BaseRendererControl

Gets or sets what type of date conversion to make when round tripping dates.

[Parameter]
public RoundTripDateConversion RoundTripDateConversion { get; set; }

Inherited from: BaseRendererControl

protected virtual bool NeedsDynamicContent { get; }

Inherited from: BaseRendererControl

protected virtual bool UseCamelEnumValues { get; }
protected override string DirectRenderElementName { get; }

Control the validity of the control.

[Parameter]
public bool Invalid { get; set; }
protected override bool SupportsVisualChildren { get; }
public override string Type { get; }
protected override bool UseDirectRender { get; }

The current value of the component.

[Parameter]
public double Value { get; set; }

Inherited from: BaseRendererControl

protected Dictionary<Type, Dictionary<string, FieldInfo>> eventCallbacksCache

Inherited from: BaseRendererControl

protected string _cachedSerializedContent

Inherited from: IgbSliderBase

public Task SetNativeElementAsync(object element)

Parameters

  • element: object

Returns any

Inherited from: IgbSliderBase

public void SetNativeElement(object element)

Parameters

  • element: object

Returns any

Inherited from: BaseRendererControl

Resolves the components event behavior if Auto is selected.

protected ControlEventBehavior ResolveEventBehavior()

Returns any

Inherited from: BaseRendererControl

protected string ToSpinal(string value)

Parameters

  • value: string

Returns any

Inherited from: BaseRendererControl

protected virtual string TransformSimpleKey(string key)

Parameters

  • key: string

Returns any

Inherited from: BaseRendererControl

protected virtual bool IsTransformedEnumValue(string key)

Parameters

  • key: string

Returns any

TransformPotentialEnumValue(string, object)

Section titled "TransformPotentialEnumValue(string, object)"

Inherited from: BaseRendererControl

protected virtual object TransformPotentialEnumValue(string key, object value)

Parameters

  • key: string
  • value: object

Returns any

Inherited from: BaseRendererControl

protected virtual SequenceInfo BuildSequenceInfo(int startSequence)

Parameters

  • startSequence: int

Returns any

Inherited from: BaseRendererControl

protected override void BuildRenderTree(RenderTreeBuilder builder)

Parameters

  • builder: RenderTreeBuilder

Returns any

Inherited from: BaseRendererControl

protected Type TemplateContentType(string templateId)

Parameters

  • templateId: string

Returns any

Inherited from: BaseRendererControl

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

  • firstRender: bool

Returns any

Inherited from: BaseRendererControl

public Task EnsureReady()

Returns any

Inherited from: BaseRendererControl

protected void MarkPropDirty(string propertyName)

Parameters

  • propertyName: string

Returns any

Inherited from: BaseRendererControl

protected bool IsPropDirty(string propertyName)

Parameters

  • propertyName: string

Returns any

Serialize(SerializationContext, string)

Section titled "Serialize(SerializationContext, string)"

Inherited from: BaseRendererControl

public void Serialize(SerializationContext context, string propertyName = null)

Parameters

  • context: SerializationContext
  • propertyName: string

Returns any

Inherited from: BaseRendererControl

public string Serialize()

Returns any

InvokeMethod(string, object[], string[], ElementReference[])

Section titled "InvokeMethod(string, object[], string[], ElementReference[])"

Inherited from: BaseRendererControl

protected Task<object> InvokeMethod(string methodName, object[] arguments, string[] types, ElementReference[] nativeElements = null)

Parameters

  • methodName: string
  • arguments: object[]
  • types: string[]
  • nativeElements: ElementReference[]

Returns any

InvokeMethodSync(string, object[], string[], ElementReference[])

Section titled "InvokeMethodSync(string, object[], string[], ElementReference[])"

Inherited from: BaseRendererControl

protected object InvokeMethodSync(string methodName, object[] arguments, string[] types, ElementReference[] nativeElements = null)

Parameters

  • methodName: string
  • arguments: object[]
  • types: string[]
  • nativeElements: ElementReference[]

Returns any

Inherited from: BaseRendererControl

Prevents data change notifications from be propagated to the component.

public void SuspendNotifications(object dataSource)

Parameters

  • dataSource: object

Returns any

Inherited from: BaseRendererControl

Resumes data change notifications.

public void ResumeNotifications(object dataSource, bool notify = true)

Parameters

  • dataSource: object
  • notify: bool

Returns any

NotifyInsertItem(object, int, object)

Section titled "NotifyInsertItem(object, int, object)"

Inherited from: BaseRendererControl

public void NotifyInsertItem(object dataSource, int index, object refItem)

Parameters

  • dataSource: object
  • index: int
  • refItem: object

Returns any

NotifyRemoveItem(object, int, object)

Section titled "NotifyRemoveItem(object, int, object)"

Inherited from: BaseRendererControl

public void NotifyRemoveItem(object dataSource, int index, object oldItem)

Parameters

  • dataSource: object
  • index: int
  • oldItem: object

Returns any

Inherited from: BaseRendererControl

public void NotifyClearItems(object dataSource)

Parameters

  • dataSource: object

Returns any

NotifySetItem(object, int, object, object)

Section titled "NotifySetItem(object, int, object, object)"

Inherited from: BaseRendererControl

public void NotifySetItem(object dataSource, int index, object oldItem, object newItem)

Parameters

  • dataSource: object
  • index: int
  • oldItem: object
  • newItem: object

Returns any

NotifyUpdateItem(object, int, object, bool)

Section titled "NotifyUpdateItem(object, int, object, bool)"

Inherited from: BaseRendererControl

public void NotifyUpdateItem(object dataSource, int index, object refItem, bool syncDataOnly = false)

Parameters

  • dataSource: object
  • index: int
  • refItem: object
  • syncDataOnly: bool

Returns any

Inherited from: BaseRendererControl

public void OnRefChanged(string refName, object refValue)

Parameters

  • refName: string
  • refValue: object

Returns any

Inherited from: BaseRendererControl

public void OnInvokeReturn(long invokeId, object returnValue)

Parameters

  • invokeId: long
  • returnValue: object

Returns any

Inherited from: BaseRendererControl

protected string Camelize(string value)

Parameters

  • value: string

Returns any

Inherited from: BaseRendererControl

protected string ToPascal(string value)

Parameters

  • value: string

Returns any

OnElementNameChanged(BaseRendererElement, string, string)

Section titled "OnElementNameChanged(BaseRendererElement, string, string)"

Inherited from: BaseRendererControl

protected void OnElementNameChanged(BaseRendererElement element, string oldName, string newName)

Parameters

  • element: BaseRendererElement
  • oldName: string
  • newName: string

Returns any

Inherited from: BaseRendererControl

protected virtual void Dispose(bool disposing)

Parameters

  • disposing: bool

Returns any

SetResourceStringAsync(string, string, string)

Section titled "SetResourceStringAsync(string, string, string)"

Inherited from: BaseRendererControl

public Task<object> SetResourceStringAsync(string grouping, string id, string value)

Parameters

  • grouping: string
  • id: string
  • value: string

Returns any

SetResourceStringAsync(string, string)

Section titled "SetResourceStringAsync(string, string)"

Inherited from: BaseRendererControl

public Task<object> SetResourceStringAsync(string grouping, string json)

Parameters

  • grouping: string
  • json: string

Returns any

SetPropertyValue(object, PropertyInfo, JsonElement)

Section titled "SetPropertyValue(object, PropertyInfo, JsonElement)"

Inherited from: BaseRendererControl

protected void SetPropertyValue(object item, PropertyInfo property, JsonElement jsonElement)

Parameters

  • item: object
  • property: PropertyInfo
  • jsonElement: JsonElement

Returns any

SetPropertyValue(object, PropertyInfo, object)

Section titled "SetPropertyValue(object, PropertyInfo, object)"

Inherited from: BaseRendererControl

protected void SetPropertyValue(object item, PropertyInfo property, object value)

Parameters

  • item: object
  • property: PropertyInfo
  • value: object

Returns any

Inherited from: BaseRendererControl

public void Dispose()

Returns any

public void CheckValidity()

Returns any

Checks for validity of the control and emits the invalid event if it invalid.

public Task CheckValidityAsync()

Returns any

protected override void EnsureModulesLoaded()

Returns any

public override object FindByName(string name)

Parameters

  • name: string

Returns any

public double GetCurrentValue()

Returns any

public Task<double> GetCurrentValueAsync()

Returns any

public void ReportValidity()

Returns any

Checks for validity of the control and shows the browser message if it invalid.

public Task ReportValidityAsync()

Returns any

protected override string ResolveDisplay()

Returns any

public void SetCustomValidity(string message)

Parameters

  • message: string

Returns any

Sets a custom validation message for the control. As long as message is not empty, the control is considered invalid.

public Task SetCustomValidityAsync(string message)

Parameters

  • message: string

Returns any

public void StepDown(double stepDecrement = 1)

Parameters

  • stepDecrement: double

Returns any

Decrements the value of the slider by stepDecrement * step, where stepDecrement defaults to 1. stepDecrement Optional step decrement. If no parameter is passed, it defaults to 1.

public Task StepDownAsync(double stepDecrement = 1)

Parameters

  • stepDecrement: double

Returns any

public void StepUp(double stepIncrement = 1)

Parameters

  • stepIncrement: double

Returns any

Increments the value of the slider by stepIncrement * step, where stepIncrement defaults to 1. stepIncrement Optional step increment. If no parameter is passed, it defaults to 1.

public Task StepUpAsync(double stepIncrement = 1)

Parameters

  • stepIncrement: double

Returns any

[Parameter]
public EventCallback<IgbNumberEventArgs> Change { get; set; }
[Parameter]
public EventCallback<IgbNumberEventArgs> Input { get; set; }
[Parameter]
public EventCallback<double> ValueChanged { get; set; }
[Parameter]
public string ChangeScript { get; set; }
[Parameter]
public string InputScript { get; set; }