Wiki源代码12 Switch

yufei li 于 2025/02/28 07:13 最后修改

显示最后作者
1 **Feature Overview**
2
3 The Switch widget is used for setting a binary state toggle, such as enabling or disabling.
4
5 **Use Cases**
6
7 It is suitable for scenarios like setting whether to enable a feature or to activate/deactivate a configuration.
8
9 **Setting Method**
10
11 Click on the Switch widget in the basic fields or drag and drop the Switch widget onto the canvas to complete the addition.
12
13
14 **Widget Properties**
15
16 (% style="width:1207px" %)
17 |**Widget Properties**|**Settings Options**|(% style="width:873px" %)**Settings Options Description**
18 |(% rowspan="5" style="width:149px" %)Basic Properties|Name|(% style="width:873px" %)Used to distinguish different widgets.
19 |Display Name|(% style="width:873px" %)Used to control whether the widget name is displayed when filling out the form.
20 |Width|(% style="width:873px" %)Used to control the display width of the current widget when filling out the form.
21 |Help Text|(% style="width:873px" %)A question mark hover appears when filling out the form, which can display help text.
22 |Permissions|(% style="width:873px" %)(((
23 Visibility Permissions: Visible, Conditionally Visible, Invisible;
24
25 Edit Permissions (precondition: visibility permissions): Editable, Non-editable;
26
27 Mandatory Permissions (precondition: edit permissions): Mandatory, Conditionally Mandatory, Not Mandatory;
28
29 Field permissions only take effect in non-process forms;
30
31 Additionally, conditionally visible and conditionally mandatory permissions take effect in both process and non-process forms.
32 )))
33 |(% rowspan="3" style="width:149px" %)Special Properties|(% style="width:180px" %)Default|(% style="width:873px" %)Tabs
34 |(% style="width:180px" %)Enable text|(% style="width:873px" %)Used to allow users to define the text displayed when the switch is turned on; this field is not required.
35 |(% style="width:180px" %)Disable text|(% style="width:873px" %)Used to allow users to define the text displayed when the switch is turned off; this field is not required.