Code Monkey home page Code Monkey logo

Comments (6)

parneetkaur7729 avatar parneetkaur7729 commented on July 18, 2024 1

here
this is the snack of the code kindly take the reference for menu of numberoflistitems to resolve the issue of drop-down.

from react-native-paper.

gedu avatar gedu commented on July 18, 2024

Hey, can you show some code or snack?
I'm assuming that the list you pass to numberOfItemsPerPageList has values, because if it is an empty list, the Menu won't show up

from react-native-paper.

parneetkaur7729 avatar parneetkaur7729 commented on July 18, 2024
 constructor(props) {
    super(props);
    this.state = {
        rows: [],
        column: [],
        max: 0,
        items: [],
        page: 0,
        setData: {},
        numberOfItemsPerPageList: [5, 25, 100],
        itemsPerPage: 5,
        selectedIndex: null, // Initialize selectedIndex
    };
}

const { page, itemsPerPage, numberOfItemsPerPageList, items } = this.state;
<DataTable.Pagination
page={page}
numberOfPages={Math.ceil(this.state.max / itemsPerPage)}
onPageChange={page => this.setState({ page })}
label={${from + 1}-${to} of ${this.state.max}}
numberOfItemsPerPageList={numberOfItemsPerPageList}
numberOfItemsPerPage={itemsPerPage}
onItemsPerPageChange={this.onItemsPerPageChange}
selectPageDropdownLabel={'Rows per page'}
/>
No, numberOfItemsPerPageList is not empty it have value 5,25,100

from react-native-paper.

gedu avatar gedu commented on July 18, 2024

I couldn't reproduce it, if you can create a snack where I can see the code and try to reproduce it would be really helpful

from react-native-paper.

gedu avatar gedu commented on July 18, 2024

Hey, the snack you sent isn't using the last version, can you try with the last react-native-paper version 5.12.2

from react-native-paper.

parneetkaur7729 avatar parneetkaur7729 commented on July 18, 2024

Hi, Checked with the latest version Here ,
still the issue is their dopdown is not coming for Android

from react-native-paper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.