A series of dom apis that sending virtual-dom’s messages to the native renderer to update the dom tree. The only API for developers to use in a
.we file is
which you can use by calling the . Other APIs mentioned on this page should only be used through the native renderer in the
Scroll the page to the specified node. This API should only be used on the element in the
This API can be used by calling the VM’s method You can use
weex.requireModule('dom').scrollToElement to call this API in your
node(Node): an element that scrolled into the view.
options(object): some options.
offset(number): An offset to the visible position, default is
animated(bool) :set element animation, default true
You can get the view rectangle information of named element.
An example callback result maybe:
If you want to get the rectangle information of ‘weex view’ container, you can specify the