<scroll-coordinator>
A header that folds away as the list below it scrolls, as on a profile page. It hands scrolling between the header and the list, which nested scroll views can't do.
Usage
src/app/profile.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
This UI method (Glossary) folds the header from code. Call it with invoke() on the element (see Call element methods).
Children
Use these elements as direct children, and make the coordinator a column (display: flex; flex-direction: column). Its height must equal the slot's height plus the toolbar's.
<scroll-coordinator-slot-drag>
Related
<list>and<viewpager>: what usually goes in the slot<refresh>: pull-to-refresh around the whole page- Call element methods
