The List
Component
Render a list of items.
OutputComponent
例子
ts
_.xList(data, bySelf, item => {
_.span(item);
_.xButton("Remove");
});
Generic: T
The type of the data of one row.
Param: data
type: D<Iterable<T>>
The data to render.
Param: key
type: LoopKey<T>
The key generator of the list. See The Key Generator.
Param: body
type: (item: T, index: number) => void
The body of rows of the list.