_Standard attributes
Sau đây là các thuộc tính tiêu chuẩn trên cài đặt đầu vào. Tuy nhiên, tùy thuộc vào loại đầu vào, có thể có các thuộc tính bổ sung hoặc một số thuộc tính có thể không áp dụng:
Attribute | Description | Require |
---|---|---|
type | The setting type, which can be any of the basic or specialized input setting types. | `yes |
id | The setting ID, which is used to access the setting value. | yes |
label | The setting label, which will show in the theme editor. | yes |
default | default value of field | no |
condition | Used to hide the field. Write like js | no |
sectionType | The field appears screen | no |
helpText | Brief description of the field | no |
disable | disable field | no |
Ví dụ
{
id: 'visibility',
type: 'visibility',
label: 'Visibility',
default: {},
sectionType: 'advanced',
condition: 'element.settings.visibilityEnabled===true',
},