Skip to content

Latest commit

 

History

History
110 lines (74 loc) · 3.73 KB

RenderVideoList.md

File metadata and controls

110 lines (74 loc) · 3.73 KB

Classes

RenderVideoListBaseDirective
RenderVideoList

RenderVideoList ⇐ BaseDirective

Kind: global class
Extends: BaseDirective

new RenderVideoList(title, behavior)

构造方法

Param Type Description
title string 列表的标题
behavior string 默认替换所有 REPLACE: 清空当前的列表,再渲染,用于首次第一页数据的渲染 APPEND: 当前列表不变,在当前的列表后面渲染,用于往后翻页的渲染 PREPEND:当前列表不变,在当前的列表前面渲染,用于往前翻页的渲染

renderVideoList.setToken(token)

设置directive的token. 默认在构造时自动生成了token,可以覆盖

Kind: instance method of RenderVideoList

Param Type Description
token string 视频的token

renderVideoList.addVideoItem(videoListItem)

增加audioItem

Kind: instance method of RenderVideoList

Param Type Description
videoListItem VideoListItem 视频项

renderVideoList.getData() ⇒ Object

获取数据

Kind: instance method of RenderVideoList

RenderVideoList

Kind: global class

new RenderVideoList(title, behavior)

构造方法

Param Type Description
title string 列表的标题
behavior string 默认替换所有 REPLACE: 清空当前的列表,再渲染,用于首次第一页数据的渲染 APPEND: 当前列表不变,在当前的列表后面渲染,用于往后翻页的渲染 PREPEND:当前列表不变,在当前的列表前面渲染,用于往前翻页的渲染

renderVideoList.setToken(token)

设置directive的token. 默认在构造时自动生成了token,可以覆盖

Kind: instance method of RenderVideoList

Param Type Description
token string 视频的token

renderVideoList.addVideoItem(videoListItem)

增加audioItem

Kind: instance method of RenderVideoList

Param Type Description
videoListItem VideoListItem 视频项

renderVideoList.getData() ⇒ Object

获取数据

Kind: instance method of RenderVideoList