Api

InterfaceutilsInitlist

OpenAPI > InterfaceUtils > initList

OpenAPI.InterfaceUtils.initList() method

初始化一个空白的列表

Signature:

static initList(list: UIList, model: any, len: number, isFocus?: boolean): void;

Parameters

Parameter

Type

Description

list

UIList

列表组件

model

any

列表项模型

len

number

列表长度

isFocus

boolean

(Optional) 是否设置焦点

void

Example

OpenAPI.InterfaceUtils.initList(ui, list, model, 10, true);

Copyright © 2021 - 2025