Skip to content

Controls

Overview

Interface interactions in applications are implemented through controls. Informat provides various controls including Buttons, Text, Dropdowns, Single-line Textboxes, Groups, Flex Layouts, and Dividers. Controls are divided into two types: interactive controls and display controls. For interactive controls, clicking them will trigger system preset actions.

Common Settings

Setting ItemDescription
NameControl name
Hide when expression is metHide the control when the expression is met
Disable when expression is metDisable the control when the expression is met

The hide and disable expressions will have different context variables in different scenarios, which can be used to dynamically set the control state. For example, for a Batch Delete button, if you want to disable it when no records are selected, the expression should be set to:

javascript
${tableSelectedIdList.size()==0}

Button Settings

Buttons are the most commonly used interactive controls. After clicking a button, the user will trigger the configured preset action. For example, the Create button in a table can be set to trigger the action Open Record Creation Page, which will open the configured record creation form when clicked.

Button settings are as follows:

Setting ItemDescription
Hide NameDo not display the button name
IconButton icon
Rounded StyleWhether the button has a rounded style
Light Border StyleWhether the button only displays the border style
StyleButton style. Optional values: Default Style, Text Style, Primary Style, Success Style, Info Style, Danger Error, Warning Style, Translucent Background
Use Expression as NameDynamically calculate the text on the button using an expression
Badge ContentDynamically calculate the text on the button using an expression
Badge StyleBadge style. Optional values: Primary Style, Success Style, Info Style, Danger Error, Warning Style
Hover TipPrompt information when the mouse hovers over the button
Shortcut KeyShortcut key to trigger the button. Function key identifiers: ctrl, alt, shift, esc, meta, command, windows. Combination keys are joined with +. For example, if the user needs to press ctrl and b, set it to ctrl+b
Need User ConfirmationAfter enabling, the user needs to confirm when clicking the button
User Confirmation PromptText displayed in the user confirmation box
Prompt after User Operation CompletesPrompt information after the action is executed. For example, after clicking the delete button, if you need to prompt Deletion Successful, you can set the prompt information to Deletion Successful

Input Box Settings

The Single-line Textbox control is used to set the style of the input box.

Setting ItemDescription
WidthWidth of the textbox, in pixels (px)
PlaceholderText displayed in the input box when no information is entered
Input Box ValueText information entered and displayed in the textbox

Text Settings

The Text control is used to display a line of text description.

Setting ItemDescription
ContentText content expression
Font SizeText font size
BoldWhether the text is bold
ColorText color
Background ColorText background color

Selector Settings

The Selector control is used to display a line of text description.

Setting ItemDescription
WidthWidth of the selector
PlaceholderPlaceholder when no value is selected
Multiple SelectionWhether multiple selection is allowed
Selector ValueIdentifier of the selected option in the selector
Option ValuesOption names and identifiers of the dropdown selector

Switch Settings

The Switch control is used to display a line of text description.

Setting ItemDescription
Switch ValueValue is of type Boolean, used to control whether the switch is turned on or off

The Divider control is used to display a separator, which separates controls with different functions.

The Flex Layout control is used to fill the empty space in the toolbar. For example, if you need to display the Create button on the left and the Delete button on the right in the toolbar, you can add a Flex Layout control between the two buttons.