Skip to main content

StickySectionr

StickySection container msv >= 4.35

Example

bxml

<sticky-section>
<sticky-header>
<view class="header" style="background-color: red;"></view>
</sticky-header>
</sticky-section>
<sticky-section>
<sticky-header>
<view class="header" style="background-color: green;"></view>
</sticky-header>
</sticky-section>

Props

NameTypeDescriptionDefault
push-pinned-headerbooleanSpecifies the style class to press down on. when hover-class="none" There is no click state effecttrue
paddingarraySpecifies whether to prevent this node's ancestor from clicking[0,0,0,0]