2.3.12 • Published 5 years ago

nuke-list-view v2.3.12

Weekly downloads
103
License
Apache-2.0
Repository
gitlab
Last release
5 years ago

Listview

  • category: UI
  • chinese: 列表
  • type: UI Component

Usage

Be used to show a datalist, which is different with ScrollView, ListView uses the weex list component memory reuse capability, in order to reuse cell smoothly.

API

ListView

AttributeDescriptionTypeDefault
renderHeaderheaderfunctionnull
renderFooterfooterfunctionnull
renderRowrender single rowfunctionnull
dataSourcedata sourcearraynull
onEndReachedThe event that was triggered when the unit was loadedonloadmore eventnull
onEndReachedThresholdload more displacementstring500
showScrollbarshow the scroll barboolnull
resetLoadmorereset the loadmore count(explanation following)functionnull

resetLoadmore demo reference

This is a method that reset the flag of onEndReached can be triggered?. The flag's default value is true, that is, which scrolls to the bottom to trigger the onEndReached event. However, the native app will set the flag to false, if the target has triggered the onEndReached event but the content of page scroller becomes more ( or less instead ) without loading more data through the setState.

Call the resetLoadmore to reset the flag so that the onEndReachen event could be triggered again.

    //Call the resetLoadmore to reset the flag so that the onEndReachen event could be triggered again.
    reset=(e)=>{
        this.refs.mylist.resetLoadmore();
    }
    render(){
        return (
                <ListView ref="mylist"
                    renderHeader={this.renderHeader}
                    renderFooter={this.renderFooter}
                    renderRow={this.renderItem}
                    dataSource={this.state.data}
                ><ListView/>
        )
    }

The Other

  • Chat with @翊晨[yichen] in Dingtalk desktop App Download
  • DingTalk Group
2.3.12

5 years ago

2.3.11

5 years ago

2.3.10

5 years ago

2.3.8

5 years ago

2.3.7

5 years ago

2.3.6

5 years ago

2.3.5

5 years ago

2.3.4

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.0

5 years ago

2.2.29

6 years ago

2.2.28

6 years ago

2.2.26

6 years ago

2.2.24

6 years ago

2.2.23

6 years ago

2.2.21

6 years ago

2.2.19

6 years ago

2.2.18

6 years ago

2.2.17

6 years ago

2.2.16

6 years ago

2.2.14

6 years ago

2.2.13

6 years ago

2.2.11

6 years ago

2.2.10

6 years ago

2.2.8

6 years ago

2.2.7

6 years ago

2.2.6

6 years ago

2.2.4

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.1.10

6 years ago

2.1.6

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.1.1-4.3

6 years ago

2.1.1-3

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.2.11

7 years ago

0.2.10

7 years ago

0.2.9

7 years ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago