gregnb / gregnb/mui-datatables

Footer Disable if records are less than rowsPerPageOptions array

Open
#1,223 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

If total records are less than provided rowsPerPageOptions array than i want to disable footer, and if i want to show all records from want one option in rowsPerPageOptions as All than how it possible ?

## Expected Behavior

Disable if records are less than rowsPerPageOptions.

## Current Behavior

Display Footer even if records are less than rowsPerPageOptions.
## Steps to Reproduce (for bugs)
This is codesandbox link
https://codesandbox.io/s/datesorting-jntyu?fontsize=14&hidenavigation=1&theme=dark

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | |
| MUI-datatables | |
| React | |
| browser | |
| etc | |

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked CodeSandbox reproduction and trace how rowsPerPageOptions controls the footer. Verify the desired behavior for fewer records and an “All” option, then confirm the footer is hidden or shown as requested without breaking pagination.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.