Api
InterfaceutilsNumberinput
OpenAPI > InterfaceUtils > NumberInput
OpenAPI.InterfaceUtils.NumberInput() method
封装数值类型的输入值
Signature:
static NumberInput(ui: UIRoot, comp: UIInput, value: number, min: number, max: number, subBtn?: UIButton, addBtn?: UIButton, minBtn?: UIButton, maxBtn?: UIButton): void;
Parameters
Parameter | Type | Description |
---|---|---|
ui | UIRoot | UI根节点 |
comp | UIInput | 输入组件 |
value | number | 输入值 |
min | number | 最小值 |
max | number | 最大值 |
subBtn | UIButton | (Optional) |
addBtn | UIButton | (Optional) |
minBtn | UIButton | (Optional) 最小值按钮 |
maxBtn | UIButton | (Optional) 最大值按钮 |
void
Example
OpenAPI.InterfaceUtils.NumberInput(ui, comp, 10, 0, 100, sub, add, minBtn, maxBtn);