Skip to content

Hide the paginator if the results per page were less than the perPage prop #42

Closed
@joaocarmo

Description

@joaocarmo

Quoting an email I received from JA:

I would like to suggest a new feature: Include a prop or an option to hide the paginator if the results per page were less than the perPage prop. Because I think in this case is a little unuseful.

Expected Behavior

Hide the paginator if the results per page were less than the perPage prop.

Actual Behavior

Paginator is always visible.

Steps to Reproduce

const App = () => (
  <SmartDataTable
    data={data.slice(0,5)}
    perPage={10}
  />
)

ReactDOM.render(<App />, document.getElementById('app'))

Screenshot

  • None

Your Environment

  • None

Metadata

Metadata

Assignees

Labels

enhancementAn enhancement that doesn't translate into a featurequestionSomething is not clearwontfixWon't fix or implement the request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions