createMainParam_slider#

图块代码

../../_images/createMainParam_slider.png

javascript

{ type: "slider", name: name, caption: caption,  initial: value,  min: min_value,  max: max_value,  step: step_value },

python

{ "type": "slider", "name": name, "caption": caption,  "initial": value,  "min": min_value,  "max": max_value,  "step": step_value },

npl

{ type = "slider", name = name, caption = caption,  initial = value,  min = min_value,  max = max_value,  step = step_value },

参数#

参数

类型

默认值

说明

name

string

“slider1”

caption

string

“滑杆”

value

number

1

min_value

number

1

max_value

number

10

step_value

number

1

示例#

{ type: "slider", name: 'slider1', caption: '滑杆',  initial: 1,  min: 1,  max: 10,  step: 1 },
{ "type": "slider", "name": 'slider1', "caption": '滑杆',  "initial": 1,  "min": 1,  "max": 10,  "step": 1 },
{ type = "slider", name = 'slider1', caption = '滑杆',  initial = 1,  min = 1,  max = 10,  step = 1 },