Wiki源代码12 Switch

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

隐藏最后作者
yufei li 7.3 1 **Feature Overview**
yufei li 1.1 2
yufei li 7.3 3 The Switch widget is used for setting a binary state toggle, such as enabling or disabling.
yufei li 1.1 4
yufei li 7.3 5 **Use Cases**
yufei li 1.1 6
yufei li 7.3 7 It is suitable for scenarios like setting whether to enable a feature or to activate/deactivate a configuration.
yufei li 1.1 8
yufei li 7.3 9 **Setting Method**
yufei li 1.1 10
yufei li 7.3 11 Click on the Switch widget in the basic fields or drag and drop the Switch widget onto the canvas to complete the addition.
yufei li 1.1 12
13
yufei li 7.3 14 **Widget Properties**
yufei li 1.1 15
yufei li 7.3 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;
maym 7.1 24
yufei li 7.3 25 Edit Permissions (precondition: visibility permissions): Editable, Non-editable;
maym 7.1 26
yufei li 7.3 27 Mandatory Permissions (precondition: edit permissions): Mandatory, Conditionally Mandatory, Not Mandatory;
maym 7.1 28
yufei li 7.3 29 Field permissions only take effect in non-process forms;
maym 7.1 30
yufei li 7.3 31 Additionally, conditionally visible and conditionally mandatory permissions take effect in both process and non-process forms.
maym 7.1 32 )))
yufei li 7.3 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.