Skip to content
Docs
Components
Checkbox

Checkbox

Latest Update:Jul 20, 2023, 10:34:13

Basic Funtions Description

When binding an "enum" type field and associating it with a data model within a form container, the enums with multiple selection options in the model will automatically render as a multi-select component. This allows users to select multiple data entries. You can configure the default selected values (when configuring default selections, you need to input option values rather than option names) and the component size (effective on PC but not on mobile)

Note

  • The layout orientation of the multi-select component supports both horizontal and vertical arrangements, with vertical as the default. When selecting horizontal, it will automatically wrap based on the length of the options.
  • The multi-select component allows configuration of multiple default selected values.
  • If the component is within a form container, properties like component size, title alignment, position, line breaks, and width will by default follow the attributes configuration of the form container.

Property

Properties received from external input for the component

Property NameProperty Description
Data ModelDisplays the data model available for the current component in the container
Bind FieldsDisplay the data fields that can be selected from the available data model in the container
Bind DataYou can enter static data in the format [{"label":"Male","value":"1"}]
Field TitleDisplays the field title for the current component
Display TitleIndicates whether the current component displays a title; it can be hidden if not needed
Specify LabelThe field to display, default is "label"
Specify ValueThe field for passing values, default is "value"
Default Input ValueThe default value for the current component
RequiredSpecifies whether the current component is a required field
DisabledSets the current component to a disabled state
WidthProvides options for selecting the width, such as full, large, medium, or small
Layout Orientationhorizontal or full width