[JavaScript] 纯文本查看 复制代码
{
"subheader":"欢迎使用Wechat插件",
"title":"Demo",
"items":[
{
"label":"开关",
"cell":"Group"
},
{
"defaults":"防广告嫌疑",
"cell":"Switch",
"label":"Enabled",
"key":"enabled",
"icon":"res/16.png",
"default":true
},
{
"label":"Button",
"cell":"Group"
},
{
"label":"打开Wiki文档",
"cell":"Link",
"url":"https://github.com/Lessica/XUI/wiki"
},
{
"cell":"Button",
"label":"显示链接",
"kwargs":[
""
],
"action":"OpenURL:"
},
{
"label":"Menu",
"cell":"Group"
},
{
"label":"Load another pane",
"cell":"Link",
"defaults":"防广告嫌疑",
"key":"datetime1",
"url":"防广告嫌疑"
},
{
"label":"Open an image",
"cell":"Link",
"url":"appicon.png"
},
{
"defaults":"防广告嫌疑",
"cell":"Option",
"label":"List of Options",
"options":[
{
"title":"Red, it's red!",
"shortTitle":"Red",
"value":"Red, it's red!"
},
{
"title":"Green, it's green!",
"shortTitle":"Green",
"value":"Green, it's green!"
},
{
"title":"Blue, great color!",
"shortTitle":"Blue",
"value":"Blue, great color!"
}
],
"key":"list-1",
"default":[
"Green, it's green!"
]
},
{
"maxCount":2,
"defaults":"防广告嫌疑",
"cell":"MultipleOption",
"label":"List of Multiple Options",
"options":[
{
"shortTitle":"Red, it's red!",
"title":"Red, it's red!",
"icon":"res/red.png",
"value":"Red, it's red!"
},
{
"shortTitle":"Green, it's green!",
"title":"Green, it's green!",
"icon":"res/green.png",
"value":"Green, it's green!"
},
{
"shortTitle":"Blue, great color!",
"title":"Blue, great color!",
"icon":"res/blue.png",
"value":"Blue, great color!"
}
],
"key":"list-2",
"default":[
"Red, it's red!",
"Green, it's green!"
]
},
{
"maxCount":2,
"defaults":"防广告嫌疑",
"cell":"OrderedOption",
"minCount":1,
"label":"List of Ordered Options",
"key":"list-3",
"options":[
{
"shortTitle":"Red",
"title":"Red",
"icon":"res/red.png",
"value":"Red"
},
{
"shortTitle":"Green",
"title":"Green",
"icon":"res/green.png",
"value":"Green"
},
{
"shortTitle":"Blue",
"title":"Blue",
"icon":"res/blue.png",
"value":"Blue"
}
],
"default":[
"Red"
]
},
{
"maxCount":10,
"defaults":"防广告嫌疑",
"cell":"EditableList",
"label":"Editable List",
"key":"list-4",
"default":[
"Default"
]
},
{
"label":"Segment",
"cell":"Group"
},
{
"defaults":"防广告嫌疑",
"cell":"Segment",
"label":"List of Options",
"options":[
{
"title":"Red",
"shortTitle":"Red",
"value":"Red"
},
{
"title":"Green",
"shortTitle":"Green",
"value":"Green"
},
{
"title":"Blue",
"shortTitle":"Blue",
"value":"Blue"
}
],
"key":"list-segment",
"default":"Green"
},
{
"maxCount":4,
"defaults":"防广告嫌疑",
"cell":"Checkbox",
"minCount":0,
"key":"checkbox1",
"alignment":"Justified",
"options":[
{
"value":"Red",
"title":"Red",
"shortTitle":"Red"
},
{
"value":"Green",
"title":"Green",
"shortTitle":"Green"
},
{
"value":"Blue",
"title":"Blue",
"shortTitle":"Blue"
},
{
"title":"Yellow",
"shortTitle":"Yellow",
"value":"Yellow"
},
{
"title":"Purple",
"shortTitle":"Purple",
"value":"Purple"
},
{
"title":"Black",
"shortTitle":"Black",
"value":"Black"
},
{
"title":"White",
"shortTitle":"White",
"value":"White"
}
],
"default":[
"Red",
"Green"
]
},
{
"cell":"Radio",
"options":[
{
"title":"First",
"shortTitle":"First",
"value":"First"
},
{
"title":"Second",
"shortTitle":"Second",
"value":"Second"
},
{
"title":"Third",
"shortTitle":"Third",
"value":"Third"
},
{
"title":"Fourth",
"shortTitle":"Fourth",
"value":"Fourth"
},
{
"title":"Fifth, please!",
"shortTitle":"Fifth, please!",
"value":"Fifth, please!"
},
{
"title":"Zero",
"shortTitle":"Zero",
"value":"Zero"
}
],
"defaults":"防广告嫌疑",
"default":"Fifth, please!",
"key":"radio"
},
{
"label":"Number",
"cell":"Group"
},
{
"showValue":true,
"min":1,
"defaults":"防广告嫌疑",
"cell":"Slider",
"label":"Slider",
"max":10,
"key":"slider",
"default":5
},
{
"label":"Stepper",
"min":1,
"defaults":"防广告嫌疑",
"autoRepeat":true,
"cell":"Stepper",
"key":"stepper",
"step":1,
"max":10,
"isInteger":true,
"default":5
},
{
"footerText":"This is the footer text of this section.",
"cell":"Group",
"label":"TextField"
},
{
"placeholder":"Enter the username",
"keyboard":"Default",
"defaults":"防广告嫌疑",
"cell":"TextField",
"key":"username",
"default":""
},
{
"placeholder":"Enter the password",
"keyboard":"Alphabet",
"defaults":"防广告嫌疑",
"cell":"TextField",
"key":"password",
"isSecure":true,
"default":""
},
{
"placeholder":"4 digits",
"keyboard":"NumberPad",
"defaults":"防广告嫌疑",
"cell":"TextField",
"label":"Number",
"key":"number",
"default":"",
"alignment":"Right",
"maxLength":4
},
{
"label":"StaticText",
"cell":"Group"
},
{
"label":"This specifier uses the label key as text content. Dynamic height of this cell is enabled.",
"cell":"StaticText"
}
],
"header":"功能界面"
}