* [doc] Add scroll event demo.
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/dd60d656 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/dd60d656 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/dd60d656 Branch: refs/heads/0.16-dev Commit: dd60d6566767418802450f6dd13e3fdfb16f28ac Parents: cf0bff0 Author: yinfeng <cxf...@apache.org> Authored: Fri Jun 30 17:09:53 2017 +0800 Committer: yinfeng <cxf...@apache.org> Committed: Fri Jun 30 17:09:53 2017 +0800 ---------------------------------------------------------------------- doc/source/cn/references/components/list.md | 4 ++-- doc/source/cn/references/components/scroller.md | 2 +- doc/source/references/components/list.md | 4 +--- doc/source/references/components/scroller.md | 4 ++-- 4 files changed, 6 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/dd60d656/doc/source/cn/references/components/list.md ---------------------------------------------------------------------- diff --git a/doc/source/cn/references/components/list.md b/doc/source/cn/references/components/list.md index 2175bfc..be14d06 100644 --- a/doc/source/cn/references/components/list.md +++ b/doc/source/cn/references/components/list.md @@ -63,7 +63,7 @@ version: 2.1 - `loadmore` <sup class="wx-v">0.5+</sup>ï¼å¦æå表æ»å¨å°åºé¨å°ä¼ç«å³è§¦åè¿ä¸ªäºä»¶ï¼ä½ å¯ä»¥å¨è¿ä¸ªäºä»¶çå¤çå½æ°ä¸å è½½ä¸ä¸é¡µçå表项ã - `onscroll` <sup class="wx-v">0.11+</sup>: å表åçæ»å¨æ¶å°ä¼è§¦å该äºä»¶ï¼äºä»¶çé»è®¤æ½æ ·ç为10pxï¼å³å表æ¯æ»å¨10px触åä¸æ¬¡ï¼å¯éè¿å±æ§`offset-accuracy`设置æ½æ ·çã - + äºä»¶ä¸ event 对象å±æ§ï¼ - `contentSize {Object}`ï¼å表çå 容尺寸 - `width {number}`: å表å 容宽度 @@ -74,7 +74,7 @@ version: 2.1 [ä½éªä¸ä¸](http://dotwe.org/bc445ede8746a31360e3607d210304c5) -- `scroll` <sup class="wx-v">0.12+</sup>ï¼å表æ»å¨æ¶è§¦åè¿ä¸ªäºä»¶ãæ¤äºä»¶åè°ä¸ä¼ç»åºå½å`contentOffset`å¼ã +- `scroll` <sup class="wx-v">0.12+</sup>ï¼å表æ»å¨æ¶è§¦åè¿ä¸ªäºä»¶ãæ¤äºä»¶åè°ä¸ä¼ç»åºå½å`contentOffset`å¼ãåè§ [scroll event demo](http://dotwe.org/vue/9ef0e52bacaa20182a693f2187d851aa)ã [ä½éªä¸ä¸](http://dotwe.org/weex/7ba3b6222d912b4b0b4aafb8248ca22f) http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/dd60d656/doc/source/cn/references/components/scroller.md ---------------------------------------------------------------------- diff --git a/doc/source/cn/references/components/scroller.md b/doc/source/cn/references/components/scroller.md index dd74525..acac227 100644 --- a/doc/source/cn/references/components/scroller.md +++ b/doc/source/cn/references/components/scroller.md @@ -62,7 +62,7 @@ version: 2.1 ## äºä»¶ - `loadmore` <sup class="wx-v">v0.5+</sup>ï¼å¦ææ»å¨å°åºé¨å°ä¼ç«å³è§¦åè¿ä¸ªäºä»¶ï¼ä½ å¯ä»¥å¨è¿ä¸ªäºä»¶çå¤çå½æ°ä¸å è½½ä¸ä¸é¡µçå表项ã -- `scroll` <sup class="wx-v">0.11+</sup>: å表åçæ»å¨æ¶å°ä¼è§¦å该äºä»¶ï¼äºä»¶çé»è®¤æ½æ ·ç为10pxï¼å³å表æ¯æ»å¨10px触åä¸æ¬¡ï¼å¯éè¿å±æ§`offset-accuracy`设置æ½æ ·çã +- `scroll` <sup class="wx-v">0.11+</sup>: å表åçæ»å¨æ¶å°ä¼è§¦å该äºä»¶ï¼äºä»¶çé»è®¤æ½æ ·ç为10pxï¼å³å表æ¯æ»å¨10px触åä¸æ¬¡ï¼å¯éè¿å±æ§`offset-accuracy`设置æ½æ ·çã åè§ [scroll event demo](http://dotwe.org/vue/9ef0e52bacaa20182a693f2187d851aa)ã äºä»¶ä¸ event 对象å±æ§ï¼ - `contentSize {Object}`ï¼å表çå 容尺寸 http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/dd60d656/doc/source/references/components/list.md ---------------------------------------------------------------------- diff --git a/doc/source/references/components/list.md b/doc/source/references/components/list.md index 1e69b94..12a62ee 100644 --- a/doc/source/references/components/list.md +++ b/doc/source/references/components/list.md @@ -91,9 +91,7 @@ common styles: check out [common styles for components](../common-style.html) onloadmore 0.5 used with loadmoreoffset attribute. if the view has less than loadmoreoffset to scroll down, the onloadmore event will be triggered. -scroll <sup class="wx-v">0.12+</sup> used with offset-accuracy attribute. This event is fired when the list scrolls. The current contentOffset value is given in this event callback. - -[try](http://dotwe.org/weex/7ba3b6222d912b4b0b4aafb8248ca22f) +scroll <sup class="wx-v">0.12+</sup> used with offset-accuracy attribute. This event is fired when the list scrolls. The current contentOffset value is given in this event callback. See details in [scroll event demo](http://dotwe.org/vue/9ef0e52bacaa20182a693f2187d851aa). common events: check out the [common events](../common-event.html) http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/dd60d656/doc/source/references/components/scroller.md ---------------------------------------------------------------------- diff --git a/doc/source/references/components/scroller.md b/doc/source/references/components/scroller.md index 6778bd6..4218757 100644 --- a/doc/source/references/components/scroller.md +++ b/doc/source/references/components/scroller.md @@ -48,9 +48,9 @@ common styles: check out [common styles for components](../common-style.html) ## Events -onloadmore used with loadmoreoffset attribute. if the view has less than loadmoreoffset to scroll down, the onloadmore event will be triggered. +`loadmore` used with loadmoreoffset attribute. if the view has less than loadmoreoffset to scroll down, the onloadmore event will be triggered. -scroll <sup class="wx-v">0.12+</sup> used with offset-accuracy attribute. This event is fired when the list scrolls. The current contentOffset value is given in this event callback. +`scroll` <sup class="wx-v">0.12+</sup> used with offset-accuracy attribute. This event is fired when the list scrolls. The current contentOffset value is given in this event callback. See details in [scroll event demo](http://dotwe.org/vue/9ef0e52bacaa20182a693f2187d851aa). common events: check out the [common events](../common-event.html)