FormControlRange

in namespace DotVVM.Bootstrap5.Controls

Extends the Range control for usage in Form.

Usage & Scenarios

A special version of the Range control that can be used in Form.

See Range for more info on how to use this control.

https://getbootstrap.com/docs/5.2/forms/form-control

Sample 1: Basic Usage

The FormControl control can render a label for any child control placed inside it.

Consider using some existing controls that combine FormControl with the most popular form elements:

<bs:FormControlRange LabelText="Range text" 
                     MinValue="10" 
                     MaxValue="200" 
                     SelectedValue="{value: 10}" 
                     Step="10" />

Properties

Name Type Description Notes Default Value
property icon ControlSizeAll String Gets or sets the size of the control for all screen sizes.
attribute
inner element
static value
bindable
default
null
property icon ControlSizeLarge String Gets or sets the size of the control for large screen sizes.
attribute
inner element
static value
bindable
default
null
property icon ControlSizeMedium String Gets or sets the size of the control for medium screen sizes.
attribute
inner element
static value
bindable
default
null
property icon ControlSizeSmall String Gets or sets the size of the control for small screen sizes.
attribute
inner element
static value
bindable
default
null
property icon ControlSizeXLarge String Gets or sets the size of the control for extra large screen sizes.
attribute
inner element
static value
bindable
default
null
property icon ControlSizeXXLarge String Gets or sets the size of the control for extra extra large screen sizes.
attribute
inner element
static value
bindable
default
null
property icon Enabled Boolean Gets or sets a value indicating whether the control is enabled.
attribute
inner element
static value
bindable
default
True
property icon FormControlCssClass String Gets or sets the CSS class to apply to the form control element.
attribute
inner element
static value
bindable
default
null
property icon FormControlType FormControlType? Gets or sets the available form control type.
attribute
inner element
static value
bindable
default
null
property icon HelpContent List<DotvvmControl> Gets or sets a custom template for for the help text. Cannot be combined with a `HelpText` property.
attribute
inner element
static value
bindable
default
null
property icon HelpText String Gets or sets a plain text for the help text. Cannot be combined with a `HelpContent` property.
attribute
inner element
static value
bindable
default
null
property icon LabelContent List<DotvvmControl> Gets or sets a custom template for for the control label. Cannot be combined with a `LabelText` property.
attribute
inner element
static value
bindable
default
null
property icon LabelSizeAll String Gets or sets the size of the label for all screen sizes.
attribute
inner element
static value
bindable
default
null
property icon LabelSizeLarge String Gets or sets the size of the label for large screen sizes.
attribute
inner element
static value
bindable
default
null
property icon LabelSizeMedium String Gets or sets the size of the label for medium screen sizes.
attribute
inner element
static value
bindable
default
null
property icon LabelSizeSmall String Gets or sets the size of the label for small screen sizes.
attribute
inner element
static value
bindable
default
null
property icon LabelSizeXLarge String Gets or sets the size of the label for extra large screen sizes.
attribute
inner element
static value
bindable
default
null
property icon LabelSizeXXLarge String Gets or sets the size of the label for extra extra large screen sizes.
attribute
inner element
static value
bindable
default
null
property icon LabelText String Gets or sets a plain text for the control label. Cannot be combined with a `LabelContent` property.
attribute
inner element
static value
bindable
default
null
property icon LabelType LabelType? Gets or sets the label type. Possible values are `Default` and `Floating`.
attribute
inner element
static value
bindable
default
null
property icon Layout FormControlLayout? Gets or sets the form control layout. Possible values are `Default`, `Horizontal` and `Grid`.
attribute
inner element
static value
bindable
default
null
property icon MaxValue Double Gets or sets the end point of the scale.
attribute
inner element
static value
bindable
default
100
property icon MinValue Double Gets or sets the start point of the scale.
attribute
inner element
static value
bindable
default
0
property icon RenderLabel Boolean? Gets or sets whether the label is rendered.
attribute
inner element
static value
bindable
default
null
property icon SelectedValue Double Gets or sets the value selected by the user.
attribute
inner element
static value
bindable
default
0
property icon Size Size? Gets or sets the size of the label and form control elements.
attribute
inner element
static value
bindable
default
null
property icon Step Double Gets or sets the size of the step which defines the difference between selectable values.
attribute
inner element
static value
bindable
default
1
property icon Visible Boolean Gets or sets whether the control is visible. When set to false, `style="display: none"` will be added to this control.
attribute
inner element
static value
bindable
default
True

Events

Name Type Description
event icon Changed ICommandBinding Gets or sets the command that triggers when the user finishes changing the value.

HTML produced by the control