tencent cloud

Feedback

Pull-down refresh

Last updated: 2024-03-04 23:12:46

    startPullDownRefresh

    This API is used via wx.startPullDownRefresh(Object object).
    Feature Description: Starts pull-down refresh. Upon invocation, it triggers the pull-down refresh animation, mirroring the effect of a user-initiated pull-down refresh.
    Parameter and Description: Object.
    Attribute
    Type
    Default value
    Required
    Description
    success
    function
    -
    No
    Callback Function of Successful Interface Call
    fail
    function
    -
    No
    Callback Function of Failing Interface Call
    complete
    function
    -
    No
    Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations)
    Sample Code
    wx.startPullDownRefresh()

    stopPullDownRefresh

    This API is used via wx.stopPullDownRefresh(Object object).
    Feature Description: Disables pull-down refresh on the current page.
    Parameter and Description: Object.
    Attribute
    Type
    Default value
    Required
    Description
    success
    function
    -
    No
    Callback Function of Successful Interface Call
    fail
    function
    -
    No
    Callback Function of Failing Interface Call
    complete
    function
    -
    No
    Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations)
    Sample Code
    Page({
    onPullDownRefresh () {
    wx.stopPullDownRefresh()
    }
    })
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support