API
Component

ScrollView ($UI/system/components/justep/scrollView/scrollView)

使用范围:UI2

Contents

component ScrollView ($UI/system/components/justep/scrollView/scrollView) extends ViewComponent

<b>可实现下拉、上滑刷新的效果(常与动态列表组件搭配实现动态加载数据效果)</b> ## <b>文档链接</b>:#http://docs.newdao.net/appnei-rong-zu-4ef6-lhj/shang-xia-hua-dong.html#

	
	

Constructor Top

  ScrollView ()
  ScrollView ( options)

Attributes Top

boolean bounce

bouncing效果(跳跃效果)

boolean checkDOMChanges

自动监听滚动区域内容变化,重新计算滚动区域高度

boolean fadeScrollbar

滚动条出现效果(淡入淡出)

boolean hideScrollbar

默认隐藏滚动条,滚动时才显示

boolean hScroll

是否横向滚动

boolean hScrollbar

是否有横向滚动条

boolean lockDirection

单方向滚动锁定

string noMoreLoadLabel

没有数据加载时候的文字

string pullDownLabel

下划文字

string pullDownLoadingLabel

下划加载中文字

string pullDownMoveLabel

下划移动中文字

string pullUpLabel

上划文字

string pullUpLoadingLabel

上划加载中文字

string pullUpMoveLabel

上划移动中文字

string scrollbarClass

自定义滚动条样式class

string snap

滚动停止位置总在指定(snap)元素边缘

boolean vScroll

是否纵向滚动

boolean vScrollbar

是否有纵向滚动条

string xid

Events Top

void onPullDown (ViewEvent event)
void onPullUp (ViewEvent event)
void onScrollEnd (ViewEvent event)
void onScrollMove (ViewEvent event)

Constructor details Top

public ScrollView ()

<b>可实现下拉、上滑刷新的效果(常与动态列表组件搭配实现动态加载数据效果)</b> ## <b>文档链接</b>:#http://docs.newdao.net/appnei-rong-zu-4ef6-lhj/shang-xia-hua-dong.html#

	
	

public ScrollView ( options)

构造函数

Inherited from ViewComponent

	
		参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
	 

Parameters

options

参数选项

Attributes Detail Top

public boolean bounce

bouncing效果(跳跃效果)

public boolean checkDOMChanges

自动监听滚动区域内容变化,重新计算滚动区域高度

public boolean fadeScrollbar

滚动条出现效果(淡入淡出)

public boolean hideScrollbar

默认隐藏滚动条,滚动时才显示

public boolean hScroll

是否横向滚动

public boolean hScrollbar

是否有横向滚动条

public boolean lockDirection

单方向滚动锁定

public string noMoreLoadLabel

没有数据加载时候的文字

public string pullDownLabel

下划文字

public string pullDownLoadingLabel

下划加载中文字

public string pullDownMoveLabel

下划移动中文字

public string pullUpLabel

上划文字

public string pullUpLoadingLabel

上划加载中文字

public string pullUpMoveLabel

上划移动中文字

public string scrollbarClass

自定义滚动条样式class

public string snap

滚动停止位置总在指定(snap)元素边缘

public boolean vScroll

是否纵向滚动

public boolean vScrollbar

是否有纵向滚动条

public string xid

Events Detail Top

public void onPullDown (ViewEvent event)

下划事件

Parameters

ViewEvent event

它的结构如下:

{"source":组件的js对象}

Return Value

void

public void onPullUp (ViewEvent event)

上划事件

Parameters

ViewEvent event

它的结构如下:

{"source":组件的js对象}

Return Value

void

public void onScrollEnd (ViewEvent event)

滚动结束事件

Parameters

ViewEvent event

它的结构如下:

{"source":组件的js对象}

Return Value

void

public void onScrollMove (ViewEvent event)

滚动事件

Parameters

ViewEvent event

它的结构如下:

{"source":组件的js对象}

Return Value

void