Shopify 所有配置类型的自定义section

1.text:一行文本输入框

"type": "text",
"id": "heading",
"label": "Heading",
"default": "Default Heading"

2.text area:多行文本输入框

"type": "textarea",
"id": "subheading",
"label": "Subheading",
"default": "Default Subheading"

3.richtext: 富文本编辑器

"type": "richtext",
"id": "rich_text",
"label": "Rich Text Content",
"default": "<p>Some <strong>bold</strong> text.</p>"

4.image_picker: 图片选择器

"type": "image_picker",
"id": "image",
"label": "Image"

5.color: 颜色选择器

"type": "color",
"id": "text_color",
"label": "Text Color",
"default": "#000000"

6.font_picker: 字体选择器

"type": "font_picker",
"id": "font",
"label": "Font"

7.select: 下拉列表选择器

"type": "select",
"id": "select_option",
"label": "Select Option",
"options": [
{
"value": "option_one",
"label": "Option One"
},
{
"value": "option_two",
"label": "Option Two"
}
],
"default": "option_one"

8.checkbox: 勾选框

"type": "checkbox",
"id": "checkbox_option",
"label": "Checkbox Option",
"default": true

9.range: 范围滑块,用于选择数值

"type": "range",
"id": "range_option",
"label": "Range Option",
"min": 10,
"max": 100,
"step": 1,
"default": 50

10.number: 数字输入框

"type": "number",
"id": "number_option",
"label": "Number Option",
"default": 5

11.url: URL输入框

"type": "url",
"id": "url_option",
"label": "URL Option",
"default": "www.example.com&quot;

12.video_url: 视频URL输入框

"type": "video_url",
"id": "video_url_option",
"label": "Video URL Option"

13.product: 产品选择器

"type": "product",
"id": "product_option"
"label": "Product Option"

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值