question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pass props to customToolbar

See original GitHub issue

I’d like to make my own custom filters, and the API is limiting.

Expected Behavior

Custom Components should get the same props that standard components get, such as tableRef. This way we can make our own Popovers and such.

Current Behavior

Custom Toolbar does not receive any props

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Lori-Beckercommented, Mar 11, 2020

I have a similar request. The customToolbar function currently allows you to add new icons/tools to the existing Toolbar. However, I need to style the existing Search and Filter icons into actual Buttons (not IconButtons) in addition to adding new tools. Is it possible to provide access to the functions that handle search, filter, and other default Toolbar tools to the customToolbar function? MUI-datatables currently passes specific parameters when building a customFooter, so I was hoping this might be viable for the customToolbar as well.

1reaction
acranmercommented, Mar 30, 2020

I also would like to have the existing toolbar functionality + additional icons

Read more comments on GitHub >

github_iconTop Results From Across the Web

Material-UI Data-Grid: How pass parameter to custom toolbar?
I am defining a custom toolbar in datagrid ( ...
Read more >
How to pass other props to custom tool in KendoReact | Telerik ...
I would like to be able to pass props other than view to custom toolbar components. Here is an example of a custom...
Read more >
Custom props for toolbar #1450 - jquense/react-big-calendar
Then in rendering Calendar component I'm looking for a way of sending additional props, e.g. handlers to my new buttons, to customized toolbar...
Read more >
Toolbar Customization Guide - Material React Table Docs
How to customize the Toolbars, add buttons to toolbars, or customize progress bars and alert banners in Material React Table.
Read more >
Create custom toolbar items using global types - YouTube
With Storybook you can build custom DevTools in seconds. And they're immediately shared with your whole team!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found