-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need a date calendar component #3104
Comments
That's the internal |
Thanks! |
@oliviertassinari The link you specified no longer works |
@jaredmahan Link fixed. |
Hey, I'm trying to use the calendar directly, but all days appear on one line. Is there any other way to show the calendar persistently?
|
Thanks @felipesp ! |
To capture day click events for |
For some reason the |
Nevermind, it was changed to |
Hey does anyone still know if this is still possible? It looks like the folder organization was changed so the Calendar now lives under /views/Calendar, but when I try to render it, it now requires props I'm not sure what to do with. Here is what I've tried: import React, { useState } from 'react';
import { MaterialUiPickersDate } from '@material-ui/pickers';
import { Calendar } from '@material-ui/pickers/views/Calendar/Calendar';
import { makeStyles } from '@material-ui/styles';
import { Theme, createStyles, useTheme } from '@material-ui/core';
const useStyles = makeStyles((theme: Theme) => createStyles({}));
interface ScheduleViewProps {
example?: string;
}
export default function ScheduleView(props: ScheduleViewProps) {
const { example } = props;
const theme: Theme = useTheme();
const [selectedDate, setSelectedDate] = useState<Date | null>(new Date());
const handleDateChange = (date: MaterialUiPickersDate) => {
setSelectedDate(date);
};
return (
<div>
<Calendar
firstDayOfWeek={1}
date={selectedDate}
onChange={(date, isFinish) => {}}
classes={{}}
utils={{}}
theme={theme}
/>
</div>
);
} Left with the Typescript errors:
Prop utils:
|
@MattRCherry Do you think that you could move the concern to https://github.com/mui-org/material-ui-pickers? Thanks :) |
Will do! My mistake should have noticed this was no longer the right repo! |
Basically It is just a calendar component with look and feel similar with the date picker. It's a calendar without "popup". Any way to make it?
The text was updated successfully, but these errors were encountered: