Mini Widgets
Check Box
Check Box
You can use the Check Box for the visual representation of your Yes/No Ninox fields.

To display the Check Box, insert the application code into a Ninox formula field and adjust the parameters to your liking. You can also integrate this mini-widget into other widgets, like the Custom Table.
This is the entire application code with all the parameters currently available for the Check Box:
Explanation of Individual Parameters
Below, it will be broken down for you which parameters you can use and what you need to enter respectively.
uniqueId
You assign the uniqueId individually; it should be unique. The reasoning behind this is: If you create multiple Check Boxes with different settings on your surface, the styles do not override each other.
value
For the value, you specify the name of your Ninox Yes/No field.
embedded
You use embedded if you do not want to place the Check Box within another widget. By default, this is set to true.
width
With width, you determine the width of the entire Check Box element.
height
With height, you determine the height of the entire Check Box element.
boxSize
With boxSize, you determine how large the Check Box should be.

borderRadius
With borderRadius, you determine the rounding of your Check Box. You can enter px values and % values.

strokeWidth
With strokeWidth, you determine the line thickness for the border of the checkbox as well as for the check line of the icon.

activeSettings Block
With the activeSettings Block, you can set the backgroundColor, borderColor of the Check Box and color of the check line for the active checkbox.

inactiveSettings Block
With the inactiveSettings Block, you can set the backgroundColor, borderColor of the Check Box and color of the check line for the inactive checkbox.

labelSettings Block
With the labelSettings Block, you can give your Check Box a label. You can enter the text to be displayed as the label under title. You can also specify Ninox fields or define variables. It is important that text is outputted here.
You can also determine with position whether the label should be "left" or "right", with fontSize the font size, and with color the font color of the label.

clickAction Block
In the clickAction Block, you enter relevant information for the click action. In recordId, you specify the record ID of the Ninox record. In fieldId, you specify the field ID of the Ninox field to which the action will be applied. In value, you define what should happen to the Ninox field when the Check Box is clicked.
💡 Note: To find out the Ninox field ID of certain fields, it is best to use the useful function arcFieldFinder().
Example and Template
Example: Check Box in a column of the Custom Table.

Template: Application code with dynamic label
You can copy the following code and with small adjustments, you will have this finished design with dynamic label:

The places where you need to change or adjust values are marked with //. Remember to remove these passages from your finished code.
💡 Tip: If you, for example, do not need a label for your Check Box, you can delete the entire labelSettings Block from your application code.