createMainParam_choice_or_radio#

图块代码

../../_images/createMainParam_choice_or_radio.png

javascript

{ type: style, name: name, caption: caption,  initial: value, values: [], captions: [] },

python

{ "type": style, "name": name, "caption": caption,  "initial": value, "values": [], "captions": [] },

npl

{ type = style, name = name, caption = caption,  initial = value, values = {}, captions = {} },

参数#

参数

类型

默认值

说明

style

string

“choice”

name

string

“choice1”

caption

string

“列表”

value

string

“”

示例#

{ type: choice, name: 'choice1', caption: '列表',  initial: '', values: [], captions: [] },
{ "type": choice, "name": 'choice1', "caption": '列表',  "initial": '', "values": [], "captions": [] },
{ type = choice, name = 'choice1', caption = '列表',  initial = '', values = {}, captions = {} },