Skip to main content

_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:

AttributeDescriptionRequire
typeThe setting type, which can be any of the basic or specialized input setting types.`yes
idThe setting ID, which is used to access the setting value.yes
labelThe setting label, which will show in the theme editor.yes
defaultdefault value of fieldno
conditionUsed to hide the field. Write like jsno
sectionTypeThe field appears screenno
helpTextBrief description of the fieldno
disabledisable fieldno

Ví dụ

    {
id: 'visibility',
type: 'visibility',
label: 'Visibility',
default: {},
sectionType: 'advanced',
condition: 'element.settings.visibilityEnabled===true',
},