
Switch
The most common switching applications are available
Click the button to switch statuses
Demo
Click the first switch to output the log with value
Control the unavailable state of the component by setting the IsDisabled
property
Demo
Set the switch status color by setting the OnColor
OffColor
property values
Demo
Binding variables within a component, data is automatically synchronized
Demo
when the Switch
component turns on bidirectional binding, the DisplayName
label value is automatically obtained based on the bound Model
property value and appears as a pre-Label
, which can be customized to display the pre-label through the DisplayText
property, or through the ShowLabel
property turns off the display of the prelabel
The pre-label explicit rules are consistent with the BootstrapInput
component of the [The portal]
Set the DisplayText
value to custom label
The value of DisplayText
is displayed when ShowLabel
is true
, regardless of whether the value is set
The value of DisplayText
is not displayed when the ShowLabel
is false
By setting ShowInnerText
property control component displays built-in text
Demo
By setting the onInnerText
OffInnerText
property to change the built-in text, a Chinese character is recommended by default to customize the component width to increase the amount of built-in text
Control the default value of the Null
value by setting the DefaultValueWhenNull
property, which is false
when not set
Demo
Attributes
Event
B station related video link
交流群