Comments (5)
This works but feels like a bit of a hacky solution. I don't understand why the date-picker component is linked to a Textfield by default. Exposing the date-picker-dialog component is a better solution in my opinion.
from mui-x.
You can use the ref dialogWindow
.
from mui-x.
@gappture see the table docs, we now have an openDialog()
function that can be called on the DatePicker component.
from mui-x.
I just checked the table docs in the link above - I found nothing about an openDialog function.
from mui-x.
I was just looking for the same openDialog function and it looks like you can get access to it from the ref.
<Button label="show date picker" onClick={e => this.datePickerRef.openDialog()} />
<DatePicker ref={ref => this.datePickerRef = ref} />
from mui-x.
Related Issues (20)
- Unexpected Error: apiRef.current.sortColumn is not a function HOT 1
- [docs] Demo PopularFeaturesDemo crashes HOT 1
- Extra space in time picker dropdowns HOT 4
- [data grid][migration guide] Missing breaking changes about `GridFilterItem` HOT 2
- [data grid] Changing Tab Key for Navigation . HOT 5
- [DataGridPremium] Customizing grouping cell indent
- apiRef.current.sortColumn doesn't work HOT 2
- [question] Can't use `updateRows` inside `processRowUpdate` HOT 4
- [docs-infra] Allow to browse props in the table of content HOT 7
- [docs] Demo LazyLoadingGrid crashes HOT 3
- [DataGridPremium] Lots of tests failures in JSDOM with v6.9.0 HOT 2
- [data grid] Action cell keeps focus after the modal opened from it HOT 5
- Pinned Column Error When Navigating to a Route Link (Within a Grid Column/Row) That Points to a Lazy-Loaded Page HOT 5
- Issue when installing modules HOT 2
- [DataGridPro] How to add a ref to every visible row of my datagrid table HOT 2
- [question] How to Customize the DataGrid LoadingOverlay? HOT 6
- [DataGridPremium] Grouped checkbox selection on parent does not select children HOT 1
- [data grid] Column group ordering HOT 1
- Datepicker bug on production (vitejs build) HOT 2
- [question] Add filter icon to a DataGrid header HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.