Custom Toolbar component
See original GitHub issueReference: Rethinking the date picker UI
Is your feature request related to a problem? Please describe.
It is not, as far as I’ve searched for the “toolbar” in all the Issues.
Describe the solution you’d like
In order to create the DatePicker described in the referenced article, I’d like to be able to pass my own <Toolbar />
component in place of the default one, ideally with the currently selected date as a prop.
<DatePicker
ToolbarComponent={({ year, month, date }) => (<div>{year}</div><div>{month}</div>))
/>
Describe alternatives you’ve considered
I looked through Dialog
and Popover
documentations for more specific prop
name instead of proposed ToolbarComponent
, but this one seems self-descriptive enough, I guess.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:8 (1 by maintainers)
Top Results From Across the Web
React-admin - The Toolbar Component - Marmelab
Create a custom toolbar using <Toolbar> , then inject it to <SimpleForm> or <TabbedForm> using the toolbar prop: // in src/MyToolbar.jss import {...
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 >Custom Toolbar in Angular Grid component - Syncfusion
Custom Toolbar is used to customize the whole toolbar. It can be added by defining toolbarTemplate. Actions for this toolbar template items are...
Read more >Toolbar component - Finsemble
The Toolbar component is highly customizable. Let's look at its default structure and customization points, including menus and favorites.
Read more >Toolbar API - Material UI - MUI
API reference docs for the React Toolbar component. ... With a rule name as part of the component's styleOverrides property in a custom...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a basic implementation of a CustomToolbar that mimics the default behaviour. It can be further customised.
It may help someone.
How do you overload the ToolbarComponent with additionnal compoment?
Something like but I don’t know how to call the default toolbar: