Add a Checkbox¶
Checkboxes can be used for switching on or off a setting, for example, for switching on or off a flagpage.
For general information about how to customize the PLOSSYS 4 panel, refer to Customize the Panel
This is how you add a checkbox to the panel:
-
Unless done, prepare customized panel configuration files
panel-<customer_name>.json
andsettings-<customer_name>.json
. For more information, refer to Customize the Panel. -
In both customized panel configuration files, add the checkbox into the
properties
list and specify the attributes of the checkbox, for example, the language-dependent label of the checkbox:Example - checkbox for the flagpage
{ ... "properties": { ... "PLS_FLAGPAGE": { "type": "boolean", "description": { "de": "Randbeschriftung", "en": "Flagpage" }, "default": true }, ... } ... }
Hint -
Y
andN
The PLOSSYS netdome (
P4
) connector maps any boolean value, for example,true
,1
orNO
, toY
orN
accordingly and passes this to PLOSSYS netdome. -
In both customized panel configuration files, add the checkbox to the
fieldsets
at the place where you want to have it in the panel:Example
{ ... "fieldsets": { ... "fields": { ... "PLS_FLAGPAGE", ... }, ... } ... }
-
Restart the following services:
-
seal-operator-p4
-
seal-operator-server
-