<refresh>
Pull-to-refresh: pulling down on its content reveals a header you design, then fires an event so you can reload.
Usage
src/app/feed.ts
Import LYNX_ELEMENTS in your component (see Elements).
Attributes
Plus the common attributes, such as id, class and style.
Events
Read the payload from $event.detail (see Handling taps and events).
Plus the common events, such as bindtap.
Methods
These UI methods (Glossary) start and end a refresh from code. Call them with invoke() on the element (see Call element methods), as the Usage example does with finishRefresh.
Children
Give <refresh> two direct children, in this order:
<refresh-header>: the header the pull reveals.- One scrollable element, such as a
<scroll-view>or a<list>.
Only vertical pulls are supported.
Related
<scroll-view>and<list><scroll-coordinator>: refresh a page with a collapsing header- Call element methods
