본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Scheduler - 이벤트 다이얼로그(Event dialog)

원문 보기 위키 갱신

내장 섹션과 커스텀 섹션으로 이벤트 다이얼로그의 General 탭을 구성할 수 있습니다.

출처: MUI X documentation

본문

{{"component": "@mui/internal-core-docs/ComponentLinkHeader", "design": false}}

:::info 이 페이지의 구성 요소(building blocks)는 다이얼로그가 프리미엄 컴포넌트에 속할 때도 @mui/x-scheduler/event-dialog에서 import됩니다. 프리미엄 전용 앱에서 import할 때는 @mui/x-scheduler를 종속성에 추가하세요. :::

이벤트 다이얼로그는 사용자가 이벤트를 클릭하거나 새 이벤트를 만들 때 열립니다. General 탭은 자체 포함된 섹션 컴포넌트들로 구성되며, eventDialogGeneralTab slot을 사용하면 탭 콘텐츠를 여러분만의 구성으로 교체할 수 있습니다: 내장 섹션의 순서를 바꾸거나, 일부를 생략하거나, 이벤트 초안(draft)을 읽고 쓰는 여러분만의 섹션을 끼워 넣을 수 있습니다.

:::info 이 slot은 General 탭 콘텐츠 전체를 교체합니다. 유지하고 싶은 내장 섹션은 그대로 렌더링하세요 — 빠뜨린 것은 무엇이든 사라지며, 날짜, 리소스, 색상, 설명 편집기까지 포함됩니다. :::

기본 사용법

아래 데모는 내장 섹션 사이에 커스텀 "Priority" 섹션을 끼워 넣습니다. 커스텀 필드는 useEventDialogFormField()로 바인딩됩니다: 사용자가 편집하면 그 값이 초안의 일부가 되어 이벤트와 함께 저장됩니다.

import * as React from 'react';
import TextField from '@mui/material/TextField';
import MenuItem from '@mui/material/MenuItem';
import Divider from '@mui/material/Divider';
import { SchedulerEvent, SchedulerResource } from '@mui/x-scheduler/models';
import { EventCalendar } from '@mui/x-scheduler/event-calendar';
import {
  EventDialogDateTimeSection,
  EventDialogResourceAndColorSection,
  EventDialogDescriptionSection,
  EventDialogSectionFieldset,
  EventDialogSectionHeaderTitle,
  useEventDialogFormField,
} from '@mui/x-scheduler/event-dialog';

function PrioritySection() {
  const priority = useEventDialogFormField('priority', {
    defaultValue: 'medium',
  });
  return (
    <EventDialogSectionFieldset>
      <EventDialogSectionHeaderTitle>Priority</EventDialogSectionHeaderTitle>
      <TextField
        select
        label="Priority"
        value={priority.value}
        onChange={(event) => priority.setValue(event.target.value)}
      >
        <MenuItem value="low">Low</MenuItem>
        <MenuItem value="medium">Medium</MenuItem>
        <MenuItem value="high">High</MenuItem>
      </TextField>
    </EventDialogSectionFieldset>
  );
}

// 모듈 스코프에서 정의합니다: 인라인 slot 컴포넌트는 캘린더의 소유자가 다시 렌더링될 때마다 다시 마운트됩니다.
function CustomGeneralTabContent() {
  return (
    <React.Fragment>
      <EventDialogDateTimeSection />
      <Divider />
      <PrioritySection />
      <Divider />
      <EventDialogResourceAndColorSection />
      <Divider />
      <EventDialogDescriptionSection />
    </React.Fragment>
  );
}

interface DemoEvent extends SchedulerEvent {
  priority?: string;
}

const defaultVisibleDate = new Date('2025-07-01T00:00:00');

const initialEvents: DemoEvent[] = [
  {
    id: 'team-sync',
    title: 'Team Sync',
    start: '2025-07-01T09:00:00',
    end: '2025-07-01T10:00:00',
    resource: 'work',
    priority: 'high',
  },
  {
    id: 'lunch',
    title: 'Lunch with Sarah',
    start: '2025-07-02T12:00:00',
    end: '2025-07-02T13:00:00',
    resource: 'personal',
  },
];

const resources: SchedulerResource[] = [
  { id: 'work', title: 'Work', eventColor: 'purple' },
  { id: 'personal', title: 'Personal', eventColor: 'teal' },
];

export default function CustomGeneralTab() {
  const [events, setEvents] = React.useState<SchedulerEvent[]>(initialEvents);

  return (
    <div style={{ height: '600px', width: '100%' }}>
      <EventCalendar
        events={events}
        resources={resources}
        defaultVisibleDate={defaultVisibleDate}
        onEventsChange={setEvents}
        defaultPreferences={{ isSidePanelOpen: false }}
        slots={{ eventDialogGeneralTab: CustomGeneralTabContent }}
      />
    </div>
  );
}

:::warning slot 컴포넌트는 모듈 스코프에서 정의하세요. render에서 인라인으로 정의하면 안 됩니다. 인라인 화살표 함수는 캘린더를 소유한 컴포넌트가 렌더링될 때마다 새로운 컴포넌트 타입이 되어, 각 렌더링이 모든 섹션을 마운트 해제하고 다시 마운트합니다 — 포커스 손실, 캐럿 점프, 유효성 검사기 재등록이 발생합니다. :::

해부(Anatomy)

import * as React from 'react';
import { EventCalendar } from '@mui/x-scheduler/event-calendar';
import {
  EventDialogDateTimeSection,
  EventDialogResourceAndColorSection,
  EventDialogDescriptionSection,
} from '@mui/x-scheduler/event-dialog';

function CustomGeneralTab() {
  return (
    <React.Fragment>
      <EventDialogDateTimeSection />
      <EventDialogResourceAndColorSection />
      <EventDialogDescriptionSection />
    </React.Fragment>
  );
}

<EventCalendar slots={{ eventDialogGeneralTab: CustomGeneralTab }} />;

이벤트 다이얼로그 General 탭 콘텐츠

<EventDialogGeneralTabContent />는 기본 구성입니다: 날짜·시간 섹션, 리소스·색상 섹션, 설명 섹션을 구분선으로 분리한 것입니다. slot이 제공되지 않을 때 렌더링되는 것이며, 여러분의 slot에서 이어서 렌더링해서 내장 섹션 뒤에 콘텐츠를 추가할 수도 있습니다.

이벤트 다이얼로그 날짜·시간 섹션

<EventDialogDateTimeSection />은 시작·종료 날짜와 시간, 그리고 하루 종일(all-day) 스위치를 편집합니다. prop을 받지 않습니다: 폼 필드를 context에서 읽습니다.

이벤트 다이얼로그 리소스·색상 섹션

<EventDialogResourceAndColorSection />은 이벤트가 속한 리소스와 그 색상을 편집합니다. 이벤트를 만들 때 리소스 선택기는 캘린더의 eventCreation.canHaveMultipleResources 설정을 따릅니다. 설정이 제공되지 않으면 이벤트 데이터에서 모드가 추론됩니다(기본값은 다중 선택). 기존 이벤트를 편집할 때는 대신 해당 이벤트의 resource 형태가 결정합니다: 배열이면 다중 선택 선택기가, 단일 id면 단일 선택 선택기가 사용됩니다 — 설정은 리소스가 없는 이벤트에 대한 폴백일 뿐입니다.

이벤트 다이얼로그 설명 섹션

<EventDialogDescriptionSection />은 이벤트 설명을 편집합니다.

이벤트 다이얼로그 섹션 필드셋과 섹션 헤더 제목

<EventDialogSectionFieldset />와 <EventDialogSectionHeaderTitle />은 날짜·시간 및 리소스·색상 섹션을 구성하는 레이아웃 기본 요소입니다(설명 섹션은 단순한 텍스트 필드입니다). 여러분만의 필드 주위에 이들을 사용하면 커스텀 섹션이 내장 섹션과 동일한 간격, 타이포그래피, 테마 클래스를 얻게 됩니다.

slot에서는 fragment를 반환하세요: 탭 콘텐츠는 gap이 있는 flex 열이므로, 구성을 <div>로 감싸면 하나의 flex 아이템으로 축소되어 섹션 사이의 세로 간격이 사라집니다.

커스텀 필드

useEventDialogFormField(key, parameters)는 컴포넌트를 이벤트 초안의 한 필드에 바인딩합니다:

  • value / setValue — 필드를 읽고 씁니다. 기록된 필드는 초안의 일부가 되어 저장 시 이벤트에 병합됩니다.
  • defaultValue — 이벤트에 아직 필드가 없을 때 필드를 초기화합니다. 건드리지 않은 기본값은 저장되지 않습니다.
  • validate — 저장 시 실행됩니다. 값이 유효하면 오류 메시지 또는 null을 반환합니다. 비동기 검증기가 지원되며, 판정은 검증이 완료될 때의 값과 검증 규칙을 반영합니다(Save를 눌렀을 때의 것이 아닙니다). 동일한 키의 여러 검증기는 등록 순서대로 실행되며, 첫 번째 실패가 우선합니다 — 이후의 것은 실행되지 않습니다.
  • error / errors — 필드의 현재 검증 메시지.
  • readOnly — 내장 키를 뒷받침하는 이벤트 속성이 읽기 전용인지 여부(eventModelStructure에서 setter가 없는 getter); 커스텀 키에서는 항상 false. 입력에 이를 반영하세요.

모든 초안 상태는 컴포넌트의 useState가 아니라 이 훅을 통해 폼에 두세요: 폼 저장소는 slot 위에 있으며 slot이 다시 마운트되어도 유지됩니다 — 컴포넌트 상태는 그렇지 않습니다.

필드에 기록된 값은 나중에 그 섹션이 마운트 해제되어도 제출됩니다(검증기만 함께 제거됩니다). 초안에서 키를 제거할 방법은 없습니다. 초안의 일부인 필드에 undefined를 쓰면 저장된 속성의 제거가 제출됩니다. 초안에 없는 키에 쓰는 것은 no-op입니다.

내장 키를 바인딩할 때는 값의 형태(EventDialogBuiltInFormValues)를 일치시키세요: 날짜는 yyyy-MM-dd 문자열, 시간은 HH:mm 문자열, resourceIds는 항상 배열, color: null은 리소스나 캘린더의 기본 이벤트 색상을 상속합니다. 이벤트를 편집할 때 범위는 바인딩별로 보존됩니다: 건드리지 않은 시작 또는 끝의 필드(startDate/startTime, endDate/endTime; 시간은 이벤트가 하루 종일이 아닐 때만 계산)는 저장 시 다시 제출되지 않으므로 저장된 값을 유지합니다. 건드리지 않은 바인딩도 allDay가 변경될 때(양쪽 바운드), 다이얼로그가 열려 있는 동안 표시 시간대가 변경되고 다른 바운드를 편집한 경우, 또는 캘린더에서 수행한 크기 조정이 여전히 dataSource에 의해 유지되고 있는 경우에는 다시 제출됩니다.

두 그룹의 이름은 예약되어 있으며 커스텀 모델 데이터를 뒷받침할 수 없습니다:

  • EventDialogBuiltInFormValues 키(title, startDate, resourceIds 및 나머지): 폼은 항상 편집 중인 이벤트에서 이들을 초기화하므로, 이러한 이름의 커스텀 모델 속성은 폼을 통해 읽거나 쓸 수 없습니다(개발 경고가 이를 알려줍니다).
  • 폼 키가 없는 SchedulerEvent 속성(id, start, end, rrule, readOnly, timezone, className 및 기타 내장 이벤트 속성): 커스텀 필드는 이들을 다시 쓸 수 없으므로, 그러한 키에 대한 기록은 저장 시 버려집니다. 타입 수준에서 거부되며 개발 모드에서 경고됩니다.

편집 중인 발생(occurrence) 읽기

useEventDialogOccurrence()는 다이얼로그가 편집 중인 발생을 반환합니다. 예를 들어 폼의 일부가 아닌 이벤트 데이터를 표시하거나 라벨을 파생하는 데 사용합니다. 편집 세션의 수명 동안 일정하며, 이벤트 다이얼로그 폼 밖에서 호출하면 throw됩니다.

유효성 검사(Validation)

아래 데모는 "Meeting link" 섹션을 추가합니다: 그 검증기는 빈 값은 통과시키지만, 제공된 값이 http:// 또는 https://로 시작하지 않으면 저장을 차단합니다.

import * as React from 'react';
import TextField from '@mui/material/TextField';
import Divider from '@mui/material/Divider';
import { SchedulerEvent, SchedulerResource } from '@mui/x-scheduler/models';
import { EventCalendar } from '@mui/x-scheduler/event-calendar';
import {
  EventDialogGeneralTabContent,
  EventDialogSectionFieldset,
  EventDialogSectionHeaderTitle,
  useEventDialogFormField,
} from '@mui/x-scheduler/event-dialog';

interface DemoEvent extends SchedulerEvent {
  meetingLink?: string;
}

function MeetingLinkSection() {
  const link = useEventDialogFormField('meetingLink', {
    defaultValue: '',
    validate: (value) =>
      value && !/^https?:\/\//.test(value)
        ? 'The meeting link must start with http:// or https://'
        : null,
  });
  return (
    <EventDialogSectionFieldset>
      <EventDialogSectionHeaderTitle>Meeting link</EventDialogSectionHeaderTitle>
      <TextField
        label="Link"
        value={link.value}
        onChange={(event) => link.setValue(event.target.value)}
        error={link.error != null}
        helperText={link.error}
        // 내장 필드처럼 저장 시 삽입된 오류를 스크린 리더에 알립니다.
        slotProps={{ formHelperText: { role: 'alert' } }}
      />
    </EventDialogSectionFieldset>
  );
}

// 모듈 스코프에서 정의합니다: 인라인 slot 컴포넌트는 캘린더의 소유자가 다시 렌더링될 때마다 다시 마운트됩니다.
function GeneralTabWithMeetingLink() {
  return (
    <React.Fragment>
      <EventDialogGeneralTabContent />
      <Divider />
      <MeetingLinkSection />
    </React.Fragment>
  );
}

const defaultVisibleDate = new Date('2025-07-01T00:00:00');

const initialEvents: DemoEvent[] = [
  {
    id: 'team-sync',
    title: 'Team Sync',
    start: '2025-07-01T09:00:00',
    end: '2025-07-01T10:00:00',
    resource: 'work',
    meetingLink: 'https://example.com/team-sync',
  },
  {
    id: 'lunch',
    title: 'Lunch with Sarah',
    start: '2025-07-02T12:00:00',
    end: '2025-07-02T13:00:00',
    resource: 'personal',
  },
];

const resources: SchedulerResource[] = [
  { id: 'work', title: 'Work', eventColor: 'purple' },
  { id: 'personal', title: 'Personal', eventColor: 'teal' },
];

export default function CustomValidation() {
  const [events, setEvents] = React.useState<SchedulerEvent[]>(initialEvents);

  return (
    <div style={{ height: '600px', width: '100%' }}>
      <EventCalendar
        events={events}
        resources={resources}
        defaultVisibleDate={defaultVisibleDate}
        onEventsChange={setEvents}
        defaultPreferences={{ isSidePanelOpen: false }}
        slots={{ eventDialogGeneralTab: GeneralTabWithMeetingLink }}
      />
    </div>
  );
}

섹션 재정렬과 생략

내장 섹션을 어떤 순서로든 렌더링하고 필요 없는 것은 빼놓을 수 있습니다:

import * as React from 'react';
import Divider from '@mui/material/Divider';
import { SchedulerEvent, SchedulerResource } from '@mui/x-scheduler/models';
import { EventCalendar } from '@mui/x-scheduler/event-calendar';
import {
  EventDialogDateTimeSection,
  EventDialogDescriptionSection,
} from '@mui/x-scheduler/event-dialog';

// 설명이 먼저 렌더링되고 리소스 섹션은 완전히 생략됩니다.
// 모듈 스코프에서 정의합니다: 인라인 slot 컴포넌트는 캘린더의 소유자가 다시 렌더링될 때마다 다시 마운트됩니다.
function ReorderedGeneralTab() {
  return (
    <React.Fragment>
      <EventDialogDescriptionSection />
      <Divider />
      <EventDialogDateTimeSection />
    </React.Fragment>
  );
}

const defaultVisibleDate = new Date('2025-07-01T00:00:00');

const initialEvents: SchedulerEvent[] = [
  {
    id: 'team-sync',
    title: 'Team Sync',
    description: 'Weekly review of the sprint board',
    start: '2025-07-01T09:00:00',
    end: '2025-07-01T10:00:00',
    resource: 'work',
  },
  {
    id: 'lunch',
    title: 'Lunch with Sarah',
    start: '2025-07-02T12:00:00',
    end: '2025-07-02T13:00:00',
    resource: 'personal',
  },
];

const resources: SchedulerResource[] = [
  { id: 'work', title: 'Work', eventColor: 'purple' },
  { id: 'personal', title: 'Personal', eventColor: 'teal' },
];

export default function ReorderAndOmitSections() {
  const [events, setEvents] = React.useState<SchedulerEvent[]>(initialEvents);

  return (
    <div style={{ height: '600px', width: '100%' }}>
      <EventCalendar
        events={events}
        resources={resources}
        defaultVisibleDate={defaultVisibleDate}
        onEventsChange={setEvents}
        defaultPreferences={{ isSidePanelOpen: false }}
        slots={{ eventDialogGeneralTab: ReorderedGeneralTab }}
      />
    </div>
  );
}

필수 리소스로 리소스 섹션 생략

섹션을 생략하면 편집기가 제거될 뿐, 폼 계약은 제거되지 않습니다. shouldEventRequireResource가 활성화되면 리소스 섹션이 렌더링되지 않아도 리소스 없이 저장하는 것은 차단된 상태로 유지됩니다 — 최종 사용자에게는 그것을 고칠 보이는 필드가 없을 뿐입니다. 개발 모드에서는 필드에 검증기가 등록되지 않은 채 처음 저장 시도가 있을 때 경고가 기록됩니다.

커스텀 탭이 내장 리소스 선택기를 대체한다면, 필드를 resourceIds 키에 바인딩하고, 해당 키에 validate 콜백을 등록하고(개발 경고는 등록된 검증기를 확인하므로, 필드만 바인딩하는 것으로는 조용해지지 않습니다), 그 error를 렌더링해서 요구 사항을 고칠 수 있게 유지하세요.

날짜 범위도 같은 방식입니다: 날짜·시간 섹션이 없어도 유효하지 않거나, 파싱할 수 없거나, 뒤집힌 범위는 저장을 차단하며 동등한 개발 경고가 발생합니다. 해당 섹션을 대체하는 것은 네 개의 날짜·시간 키에 대해 검증기를 등록하고 그 오류를 렌더링해야 합니다.

커스텀 slot props 타이핑

slotProps.eventDialogGeneralTab을 통해 slot에 추가 prop을 전달하고, EventDialogGeneralTabPropsOverrides 인터페이스를 보강해서 타입을 지정합니다:

declare module '@mui/x-scheduler/models' {
  interface EventDialogGeneralTabPropsOverrides {
    highlightColor?: string;
  }
}

<EventCalendar
  slots={{ eventDialogGeneralTab: CustomGeneralTab }}
  slotProps={{ eventDialogGeneralTab: { highlightColor: 'red' } }}
/>;

slot이 렌더링되는 위치

  • 이 slot은 이벤트 편집 표면의 General 탭 콘텐츠입니다: 데스크톱 다이얼로그와 컴팩트 뷰의 좁은 편집 서랍(drawer)에서 모두 렌더링되므로 커스텀 콘텐츠는 반응형으로 유지하세요.
  • 다른 탭이 선택된 동안 General 탭 패널은 마운트 해제되지 않고 hidden입니다: 필드는 초안 값을 유지하고 검증기는 저장 시 계속 실행됩니다.
  • 읽기 전용 이벤트는 편집 폼 대신 읽기 전용 요약을 렌더링하므로, 이벤트에 대해서는 slot이 렌더링되지 않습니다.

EventCalendar API

데모(Demos)

이 React 컴포넌트 사용에 대한 예제와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:

Import

import { EventCalendar } from '@mui/x-scheduler/event-calendar';
// or
import { EventCalendar } from '@mui/x-scheduler';

Props

Name Type Default Required Description
apiRef { current?: { setVisibleDate?: func } } - No
areEventsDraggable bool true No
areEventsResizable 'end' | 'start' | bool true No
canDragEventsFromTheOutside bool false No
canDropEventsToTheOutside bool false No
classes object - No Override or extend the styles applied to the component.
collapsedResources object - No
dateLocale object enUS (English) No
defaultCollapsedResources object {} - all resources are expanded No
defaultPreferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } { showWeekends: true, showWeekNumber: false, isSidePanelOpen: true, showEmptyDaysInAgenda: true, ampm: true } No
defaultView 'agenda' | 'day' | 'month' | 'week' "week" No
defaultVisibleDate Date today No
defaultVisibleResources object {} - all resources are visible No
displayTimezone string "default" No
eventColor 'amber' | 'blue' | 'green' | 'grey' | 'indigo' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' "teal" No
eventCreation { canHaveMultipleResources?: bool, duration?: number, interaction?: 'click' | 'double-click' } | bool - No
eventModelStructure object - No
events Array<object> [] No
localeText object - No
onCollapsedResourcesChange func - No
onEventEditingStart func - No
onEventsChange func - No
onPreferencesChange func - No
onViewChange func - No
onVisibleDateChange func - No
onVisibleResourcesChange func - No
preferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } - No
preferencesMenuConfig false | { toggleAmpm?: bool, toggleEmptyDaysInAgenda?: bool, toggleWeekendVisibility?: bool, toggleWeekNumberVisibility?: bool, toggleWeekStartsOn?: bool } { toggleWeekendVisibility: true, toggleWeekNumberVisibility: true, toggleAmpm: true, toggleEmptyDaysInAgenda: true, toggleWeekStartsOn: false } No
readOnly bool false No
resourceModelStructure object - No
resources Array<object> - No
shouldEventRequireResource bool false No
showCurrentTimeIndicator bool true No
slotProps object {} No
slots object {} No
sx Array<func | object | bool> | func | object - No The system prop that allows defining system overrides as well as additional CSS styles.
view 'agenda' | 'day' | 'month' | 'week' - No
viewConfig { day?: { endTime?: number, initialScrollTime?: number, startTime?: number }, week?: { endTime?: number, initialScrollTime?: number, startTime?: number } } - No
views Array<'agenda' | 'day' | 'month' | 'week'> ["day", "week", "month", "agenda"] No
visibleDate Date - No
visibleResources object - No

Note: The ref is forwarded to the root element (HTMLDivElement).

Any other props supplied will be provided to the root element (native element).

테마 기본 props

MuiEventCalendar를 사용하면 테마로 이 컴포넌트의 기본 props를 변경할 수 있습니다.

Slots

Name Default Class Description
eventDialogGeneralTab EventDialogGeneralTabContent - The content of the "General" tab of the event editing surface:
the dialog on regular views, the compact editing drawer on compact views.
It is rendered inside the tab panel, so it must not render a tab panel of its own.
Return a fragment rather than a wrapper element to keep the spacing between the sections.

CSS

Rule name

Global class Rule name Description
- agendaView Styles applied to the agenda view element.
- agendaViewDayHeaderCell Styles applied to agenda view day header cell elements.
- agendaViewDayNumberCell Styles applied to agenda view day number cell elements.
- agendaViewEmptyState Styles applied to the agenda view empty state element.
- agendaViewEventListItem Styles applied to the agenda view event list item elements.
- agendaViewEventsList Styles applied to the agenda view events list element.
- agendaViewRow Styles applied to agenda view row elements.
- agendaViewWeekDayCell Styles applied to agenda view week day cell elements.
- agendaViewWeekDayNameLabel Styles applied to agenda view week day name label elements.
- agendaViewWeekNumberLabel Styles applied to agenda view week number label elements.
- agendaViewWeekNumberRow Styles applied to agenda view week number row elements.
- agendaViewYearAndMonthLabel Styles applied to agenda view year and month label elements.
- anchoredEventToolbar Styles applied to the anchored (desktop) armed-event toolbar wrapper element.
- compactDayTimeGrid Styles applied to the compact (touch) day time grid root element.
- compactDayTimeGridContent Styles applied to the compact (touch) day time grid content element.
- compactEventDrawer Styles applied to the compact editing drawer root element.
- compactEventDrawerContent Styles applied to the compact editing drawer content element.
- compactEventDrawerReadonlyHeader Styles applied to the compact editing drawer read-only header element.
- compactEventDrawerReadonlyTitle Styles applied to the compact editing drawer read-only title element.
- compactEventToolbarDock Styles applied to the compact (touch) armed-event toolbar dock element.
- content Styles applied to the content section element.
- dayGridEvent Styles applied to day grid event elements.
- dayGridEventCardContent Styles applied to day grid event card content elements.
- dayGridEventCardWrapper Styles applied to day grid event card wrapper elements.
- dayGridEventLinesClamp Styles applied to day grid event lines clamp elements.
- dayGridEventPlaceholder Styles applied to day grid event placeholder elements.
- dayGridEventRecurringIcon Styles applied to day grid event recurring icon elements.
- dayGridEventResizeHandler Styles applied to day grid event resize handler elements.
- dayGridEventTime Styles applied to day grid event time elements.
- dayGridEventTitle Styles applied to day grid event title elements.
- dayTimeGrid Styles applied to the day time grid element.
- dayTimeGridAllDayEventContainer Styles applied to day time grid all day event container elements.
- dayTimeGridAllDayEventsCell Styles applied to day time grid all day events cell elements.
- dayTimeGridAllDayEventsCellEvents Styles applied to day time grid all day events cell events container elements.
- dayTimeGridAllDayEventsGrid Styles applied to the day time grid all day events grid element.
- dayTimeGridAllDayEventsHeaderCell Styles applied to the day time grid all day events header cell element.
- dayTimeGridAllDayEventsRow Styles applied to the day time grid all day events row element.
- dayTimeGridBody Styles applied to the day time grid body element.
- dayTimeGridColumn Styles applied to day time grid column elements.
- dayTimeGridColumnInteractiveLayer Styles applied to day time grid column interactive layer elements.
- dayTimeGridContainer Styles applied to the day time grid container element.
- dayTimeGridCurrentTimeIndicator Styles applied to the day time grid current time indicator element.
- dayTimeGridCurrentTimeIndicatorCircle Styles applied to the day time grid current time indicator circle element.
- dayTimeGridCurrentTimeLabel Styles applied to the day time grid current time label element.
- dayTimeGridGrid Styles applied to the day time grid grid element.
- dayTimeGridHeader Styles applied to the day time grid header element.
- dayTimeGridHeaderButton Styles applied to day time grid header button elements.
- dayTimeGridHeaderCell Styles applied to day time grid header cell elements.
- dayTimeGridHeaderContent Styles applied to day time grid header content elements.
- dayTimeGridHeaderDayName Styles applied to day time grid header day name elements.
- dayTimeGridHeaderDayNumber Styles applied to day time grid header day number elements.
- dayTimeGridScrollableContent Styles applied to the day time grid scrollable content element.
- dayTimeGridScrollablePlaceholder Styles applied to the day time grid scrollable placeholder element.
- dayTimeGridTimeAxis Styles applied to the day time grid time axis element.
- dayTimeGridTimeAxisCell Styles applied to day time grid time axis cell elements.
- dayTimeGridTimeAxisText Styles applied to day time grid time axis text elements.
- errorAlert Styles applied to the error alert element.
- errorContainer Styles applied to the error container element.
- errorMessage Styles applied to the error message element.
- eventColorIndicator Styles applied to event color indicator elements.
- eventContextMenu Styles applied to the event context menu root element.
- eventContextMenuDeleteItem Styles applied to the event context menu delete item element.
- eventContextMenuEditItem Styles applied to the event context menu edit item element.
- eventContextMenuShowDetailsItem Styles applied to the event context menu show details item element (read-only events).
- eventDialog Styles applied to the event dialog root element.
- eventDialogActions Styles applied to the event dialog actions element.
- eventDialogCloseAction Styles applied to the event dialog close action button element.
- eventDialogCloseButton Styles applied to the event dialog close button element.
- eventDialogContent Styles applied to the event dialog content element.
- eventDialogDateTimeContainer Styles applied to the event dialog date time container element.
- eventDialogDateTimeFieldsContainer Styles applied to the event dialog date time fields container element.
- eventDialogDateTimeFieldsRow Styles applied to the event dialog date time fields row element.
- eventDialogDateTimeIcon Styles applied to the event dialog date time icon element.
- eventDialogDateTimeLabel Styles applied to the event dialog date time label element.
- eventDialogDeleteButton Styles applied to the event dialog delete button element.
- eventDialogDescriptionLabel Styles applied to the event dialog description label element.
- eventDialogEndsRadioGroup Styles applied to the event dialog ends radio group element.
- eventDialogForm Styles applied to the event dialog form element.
- eventDialogFormActions Styles applied to the event dialog form actions element.
- eventDialogFormDivider Styles applied to the event dialog form divider element.
- eventDialogFrequencySelect Styles applied to the event dialog frequency select element.
- eventDialogHeader Styles applied to the event dialog header element.
- eventDialogHeaderActions Styles applied to the event dialog header actions container element.
- eventDialogInlineRow Styles applied to the event dialog inline row element.
- eventDialogPaper Styles applied to the event dialog paper element.
- eventDialogRadioButtonLabel Styles applied to the event dialog radio button label element.
- eventDialogReadonlyContent Styles applied to the event dialog readonly content element.
- eventDialogRecurrenceIcon Styles applied to the event dialog recurrence icon element.
- eventDialogRecurrenceLabel Styles applied to the event dialog recurrence label element.
- eventDialogRecurrenceLabelContainer Styles applied to the event dialog recurrence label container element in the readonly content.
- eventDialogRecurrenceSelectorContainer Styles applied to the event dialog recurrence selector container element.
- eventDialogRecurrenceSelectorToggleGroup Styles applied to the event dialog recurrence selector toggle group element.
- eventDialogRecurrenceTimezoneLabel Styles applied to the recurrence timezone note and label suffix elements.
- eventDialogRepeatSectionContent Styles applied to the event dialog repeat section content element.
- eventDialogRepeatSectionFieldset Styles applied to the event dialog repeat section fieldset element.
- eventDialogRepeatSectionLabel Styles applied to the event dialog repeat section label element.
- eventDialogResourceContainer Styles applied to the event dialog resource container element.
- eventDialogResourceLegendColor Styles applied to the event dialog resource legend color element.
- eventDialogResourceLegendContainer Styles applied to the event dialog resource legend container element.
- eventDialogResourceMenuColorDot Styles applied to the event dialog resource menu color dot element.
- eventDialogResourceMenuColorToggle Styles applied to the event dialog resource menu color toggle element.
- eventDialogResourceMenuColorToggleGroup Styles applied to the event dialog resource menu color toggle group element.
- eventDialogResourceMenuItem Styles applied to the event dialog resource menu item element.
- eventDialogResourceMenuListSubheader Styles applied to the event dialog resource menu list subheader element.
- eventDialogResourceTitle Styles applied to the event dialog resource title element.
- eventDialogSaveButton Styles applied to the event dialog save button element.
- eventDialogSectionFieldset Styles applied to the event dialog section fieldset element.
- eventDialogSectionHeaderTitle Styles applied to the event dialog section header title element.
- eventDialogSmallNumberField Styles applied to the event dialog small number field element.
- eventDialogTab Styles applied to the event dialog tab elements.
- eventDialogTabContent Styles applied to the event dialog tab content element.
- eventDialogTabPanel Styles applied to the event dialog tab panel element.
- eventDialogTabsContainer Styles applied to the event dialog tabs container element.
- eventDialogTitle Styles applied to the event dialog title element.
- eventDialogWeekDaySelectorCheckbox Styles applied to the event dialog week day selector form group element.
- eventDragPreview Styles applied to the event drag preview element.
- eventItemCard Styles applied to event item card elements.
- eventItemCardContent Styles applied to event item card content elements.
- eventItemCardWrapper Styles applied to event item card wrapper elements.
- eventItemLinesClamp Styles applied to event item lines clamp elements.
- eventItemRecurringIcon Styles applied to event item recurring icon elements.
- eventItemTime Styles applied to event item time elements.
- eventItemTitle Styles applied to event item title elements.
- eventSkeleton Styles applied to the event skeleton element.
- eventToolbar Styles applied to the armed-event toolbar root element.
- eventToolbarDeleteButton Styles applied to the armed-event toolbar delete button element.
- eventToolbarEditButton Styles applied to the armed-event toolbar edit button element.
- headerToolbar Styles applied to the header toolbar element.
- headerToolbarActions Styles applied to the header toolbar actions element.
- headerToolbarCompactMenuButton Styles applied to the header toolbar compact menu button element (compact layout).
- headerToolbarCompactTodayButton Styles applied to the header toolbar compact today button element (compact layout).
- headerToolbarDateNavigator Styles applied to the header toolbar date navigator buttons container element.
- headerToolbarLabel Styles applied to the header toolbar label element.
- headerToolbarLeftElement Styles applied to the header toolbar left side element.
- headerToolbarNextButton Styles applied to the header toolbar next button element.
- headerToolbarPreviousButton Styles applied to the header toolbar previous button element.
- headerToolbarSidePanelToggle Styles applied to the header toolbar side panel toggle button element.
- headerToolbarTodayButton Styles applied to the header toolbar today button element.
- headerToolbarWeekNumber Styles applied to the header toolbar week number element.
- mainPanel Styles applied to the main panel element.
- miniCalendar Styles applied to the mini calendar root element.
- miniCalendarDayButton Styles applied to mini calendar day buttons.
- miniCalendarDayCell Styles applied to mini calendar day cells.
- miniCalendarGrid Styles applied to the mini calendar grid (body).
- miniCalendarHeader Styles applied to the mini calendar header element.
- miniCalendarMonthLabel Styles applied to the mini calendar month label.
- miniCalendarNavigation Styles applied to the mini calendar header navigation container.
- miniCalendarNextButton Styles applied to the mini calendar next button element.
- miniCalendarPreviousButton Styles applied to the mini calendar previous button element.
- miniCalendarWeekdayCell Styles applied to individual mini calendar weekday header cells.
- miniCalendarWeekdayHeader Styles applied to the mini calendar weekday header row.
- miniCalendarWeekRow Styles applied to mini calendar week rows.
- monthView Styles applied to the month view root element.
- monthViewBody Styles applied to the month view body element.
- monthViewCell Styles applied to month view cell elements.
- monthViewCellEvents Styles applied to month view cell events container elements.
- monthViewCellNumber Styles applied to month view cell number elements.
- monthViewCellNumberButton Styles applied to month view cell number button elements.
- monthViewGrid Styles applied to the month view grid element.
- monthViewHeader Styles applied to the month view header element.
- monthViewHeaderCell Styles applied to month view header cell elements.
- monthViewMoreEvents Styles applied to month view more events button elements.
- monthViewPlaceholderContainer Styles applied to month view placeholder event container elements.
- monthViewRow Styles applied to month view row elements.
- monthViewWeekHeaderCell Styles applied to the month view week header cell element.
- monthViewWeekNumberCell Styles applied to month view week number cell elements.
- moreEventsPopover Styles applied to the more events popover element.
- moreEventsPopoverBody Styles applied to the more events popover body element.
- moreEventsPopoverHeader Styles applied to the more events popover header element.
- moreEventsPopoverTitle Styles applied to the more events popover title element.
- preferencesMenu Styles applied to the preferences menu element.
- preferencesMenuButton Styles applied to the preferences menu button element.
- preferencesMenuDivider Styles applied to the preferences menu divider elements.
- preferencesMenuItem Styles applied to the preferences menu item elements.
- preferencesMenuList Styles applied to the preferences menu list element.
- preferencesMenuListItemIcon Styles applied to the preferences menu list item icon elements.
- preferencesMenuListItemText Styles applied to the preferences menu list item text elements.
- preferencesMenuListSubheader Styles applied to the preferences menu list subheader elements.
- resourceLegendColor Styles applied to event item resource legend color elements.
- resourcesTree Styles applied to the resources tree root element.
- resourcesTreeItem Styles applied to resources tree item elements.
- resourcesTreeItemCheckbox Styles applied to resources tree item checkbox elements.
- resourcesTreeItemLabel Styles applied to resources tree item label elements.
- resourcesTreeLabel Styles applied to the resources tree section label element.
- root Styles applied to the root element.
- sidePanel Styles applied to the side panel element.
- sidePanelCollapse Styles applied to the side panel collapse element.
- sidePanelDivider Styles applied to the side panel divider element.
- sidePanelDrawer Styles applied to the side panel drawer paper (popup) element (compact layout).
- sidePanelDrawerBackdrop Styles applied to the side panel drawer backdrop element.
- sidePanelDrawerCloseButton Styles applied to the side panel drawer close button element.
- sidePanelDrawerHeader Styles applied to the side panel drawer header element.
- sidePanelDrawerPreferences Styles applied to the side panel drawer preferences entry list element.
- sidePanelDrawerPreferencesButton Styles applied to the side panel drawer preferences button element.
- sidePanelDrawerPreferencesList Styles applied to the side panel drawer collapsible preferences options list element.
- sidePanelDrawerTitle Styles applied to the side panel drawer title element.
- sidePanelDrawerViewItem Styles applied to side panel drawer view list item elements.
- sidePanelDrawerViewList Styles applied to the side panel drawer view list element.
- sidePanelDrawerViewport Styles applied to the side panel drawer root (modal) element.
- standaloneEvent Styles applied to the standalone event element.
- timeGridEvent Styles applied to time grid event elements.
- timeGridEventPlaceholder Styles applied to time grid event placeholder elements.
- timeGridEventRecurringIcon Styles applied to time grid event recurring icon elements.
- timeGridEventResizeHandler Styles applied to time grid event resize handler elements.
- timeGridEventSkeleton Styles applied to time grid event skeleton elements.
- timeGridEventTime Styles applied to time grid event time elements.
- timeGridEventTitle Styles applied to time grid event title elements.
- viewSwitcher Styles applied to the view switcher element.
- viewSwitcherButton Styles applied to the view switcher button element.
- viewSwitcherMenu Styles applied to the view switcher menu element.

소스 코드

이 페이지에서 정보를 찾지 못했다면, 더 자세한 내용을 위해 컴포넌트의 구현을 살펴보세요.

EventCalendarPremium API

데모(Demos)

이 React 컴포넌트 사용에 대한 예제와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:

Import

import { EventCalendarPremium } from '@mui/x-scheduler-premium/event-calendar-premium';
// or
import { EventCalendarPremium } from '@mui/x-scheduler-premium';

Props

Name Type Default Required Description
apiRef { current?: { setVisibleDate?: func } } - No
areEventsDraggable bool true No
areEventsResizable 'end' | 'start' | bool true No
canDragEventsFromTheOutside bool false No
canDropEventsToTheOutside bool false No
classes object - No Override or extend the styles applied to the component.
collapsedResources object - No
dataSource { getEvents: func, persistEvents: func } - No
dateLocale object enUS (English) No
defaultCollapsedResources object {} - all resources are expanded No
defaultPreferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } { showWeekends: true, showWeekNumber: false, isSidePanelOpen: true, showEmptyDaysInAgenda: true, ampm: true } No
defaultView 'agenda' | 'day' | 'month' | 'week' "week" No
defaultVisibleDate Date today No
defaultVisibleResources object {} - all resources are visible No
displayTimezone string "default" No
eventColor 'amber' | 'blue' | 'green' | 'grey' | 'indigo' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' "teal" No
eventCreation { canHaveMultipleResources?: bool, duration?: number, interaction?: 'click' | 'double-click' } | bool - No
eventModelStructure object - No
events Array<object> [] No
localeText object - No
onCollapsedResourcesChange func - No
onEventEditingStart func - No
onEventsChange func - No
onPreferencesChange func - No
onViewChange func - No
onVisibleDateChange func - No
onVisibleResourcesChange func - No
preferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } - No
preferencesMenuConfig false | { toggleAmpm?: bool, toggleEmptyDaysInAgenda?: bool, toggleWeekendVisibility?: bool, toggleWeekNumberVisibility?: bool, toggleWeekStartsOn?: bool } { toggleWeekendVisibility: true, toggleWeekNumberVisibility: true, toggleAmpm: true, toggleEmptyDaysInAgenda: true, toggleWeekStartsOn: false } No
readOnly bool false No
resourceModelStructure object - No
resources Array<object> - No
shouldEventRequireResource bool false No
showCurrentTimeIndicator bool true No
slotProps object {} No
slots object {} No
sx Array<func | object | bool> | func | object - No The system prop that allows defining system overrides as well as additional CSS styles.
view 'agenda' | 'day' | 'month' | 'week' - No
viewConfig { day?: { endTime?: number, initialScrollTime?: number, startTime?: number }, week?: { endTime?: number, initialScrollTime?: number, startTime?: number } } - No
views Array<'agenda' | 'day' | 'month' | 'week'> ["day", "week", "month", "agenda"] No
visibleDate Date - No
visibleResources object - No

Note: The ref is forwarded to the root element (HTMLDivElement).

Any other props supplied will be provided to the root element (native element).

테마 기본 props

MuiEventCalendarPremium를 사용하면 테마로 이 컴포넌트의 기본 props를 변경할 수 있습니다.

Slots

Name Default Class Description
eventDialogGeneralTab EventDialogGeneralTabContent - The content of the "General" tab of the event editing surface:
the dialog on regular views, the compact editing drawer on compact views.
It is rendered inside the tab panel, so it must not render a tab panel of its own.
Return a fragment rather than a wrapper element to keep the spacing between the sections.

CSS

Rule name

Global class Rule name Description
- agendaView Styles applied to the agenda view element.
- agendaViewDayHeaderCell Styles applied to agenda view day header cell elements.
- agendaViewDayNumberCell Styles applied to agenda view day number cell elements.
- agendaViewEmptyState Styles applied to the agenda view empty state element.
- agendaViewEventListItem Styles applied to the agenda view event list item elements.
- agendaViewEventsList Styles applied to the agenda view events list element.
- agendaViewRow Styles applied to agenda view row elements.
- agendaViewWeekDayCell Styles applied to agenda view week day cell elements.
- agendaViewWeekDayNameLabel Styles applied to agenda view week day name label elements.
- agendaViewWeekNumberLabel Styles applied to agenda view week number label elements.
- agendaViewWeekNumberRow Styles applied to agenda view week number row elements.
- agendaViewYearAndMonthLabel Styles applied to agenda view year and month label elements.
- anchoredEventToolbar Styles applied to the anchored (desktop) armed-event toolbar wrapper element.
- compactDayTimeGrid Styles applied to the compact (touch) day time grid root element.
- compactDayTimeGridContent Styles applied to the compact (touch) day time grid content element.
- compactEventDrawer Styles applied to the compact editing drawer root element.
- compactEventDrawerContent Styles applied to the compact editing drawer content element.
- compactEventDrawerReadonlyHeader Styles applied to the compact editing drawer read-only header element.
- compactEventDrawerReadonlyTitle Styles applied to the compact editing drawer read-only title element.
- compactEventToolbarDock Styles applied to the compact (touch) armed-event toolbar dock element.
- content Styles applied to the content section element.
- dayGridEvent Styles applied to day grid event elements.
- dayGridEventCardContent Styles applied to day grid event card content elements.
- dayGridEventCardWrapper Styles applied to day grid event card wrapper elements.
- dayGridEventLinesClamp Styles applied to day grid event lines clamp elements.
- dayGridEventPlaceholder Styles applied to day grid event placeholder elements.
- dayGridEventRecurringIcon Styles applied to day grid event recurring icon elements.
- dayGridEventResizeHandler Styles applied to day grid event resize handler elements.
- dayGridEventTime Styles applied to day grid event time elements.
- dayGridEventTitle Styles applied to day grid event title elements.
- dayTimeGrid Styles applied to the day time grid element.
- dayTimeGridAllDayEventContainer Styles applied to day time grid all day event container elements.
- dayTimeGridAllDayEventsCell Styles applied to day time grid all day events cell elements.
- dayTimeGridAllDayEventsCellEvents Styles applied to day time grid all day events cell events container elements.
- dayTimeGridAllDayEventsGrid Styles applied to the day time grid all day events grid element.
- dayTimeGridAllDayEventsHeaderCell Styles applied to the day time grid all day events header cell element.
- dayTimeGridAllDayEventsRow Styles applied to the day time grid all day events row element.
- dayTimeGridBody Styles applied to the day time grid body element.
- dayTimeGridColumn Styles applied to day time grid column elements.
- dayTimeGridColumnInteractiveLayer Styles applied to day time grid column interactive layer elements.
- dayTimeGridContainer Styles applied to the day time grid container element.
- dayTimeGridCurrentTimeIndicator Styles applied to the day time grid current time indicator element.
- dayTimeGridCurrentTimeIndicatorCircle Styles applied to the day time grid current time indicator circle element.
- dayTimeGridCurrentTimeLabel Styles applied to the day time grid current time label element.
- dayTimeGridGrid Styles applied to the day time grid grid element.
- dayTimeGridHeader Styles applied to the day time grid header element.
- dayTimeGridHeaderButton Styles applied to day time grid header button elements.
- dayTimeGridHeaderCell Styles applied to day time grid header cell elements.
- dayTimeGridHeaderContent Styles applied to day time grid header content elements.
- dayTimeGridHeaderDayName Styles applied to day time grid header day name elements.
- dayTimeGridHeaderDayNumber Styles applied to day time grid header day number elements.
- dayTimeGridScrollableContent Styles applied to the day time grid scrollable content element.
- dayTimeGridScrollablePlaceholder Styles applied to the day time grid scrollable placeholder element.
- dayTimeGridTimeAxis Styles applied to the day time grid time axis element.
- dayTimeGridTimeAxisCell Styles applied to day time grid time axis cell elements.
- dayTimeGridTimeAxisText Styles applied to day time grid time axis text elements.
- errorAlert Styles applied to the error alert element.
- errorContainer Styles applied to the error container element.
- errorMessage Styles applied to the error message element.
- eventColorIndicator Styles applied to event color indicator elements.
- eventContextMenu Styles applied to the event context menu root element.
- eventContextMenuDeleteItem Styles applied to the event context menu delete item element.
- eventContextMenuEditItem Styles applied to the event context menu edit item element.
- eventContextMenuShowDetailsItem Styles applied to the event context menu show details item element (read-only events).
- eventDialog Styles applied to the event dialog root element.
- eventDialogActions Styles applied to the event dialog actions element.
- eventDialogCloseAction Styles applied to the event dialog close action button element.
- eventDialogCloseButton Styles applied to the event dialog close button element.
- eventDialogContent Styles applied to the event dialog content element.
- eventDialogDateTimeContainer Styles applied to the event dialog date time container element.
- eventDialogDateTimeFieldsContainer Styles applied to the event dialog date time fields container element.
- eventDialogDateTimeFieldsRow Styles applied to the event dialog date time fields row element.
- eventDialogDateTimeIcon Styles applied to the event dialog date time icon element.
- eventDialogDateTimeLabel Styles applied to the event dialog date time label element.
- eventDialogDeleteButton Styles applied to the event dialog delete button element.
- eventDialogDescriptionLabel Styles applied to the event dialog description label element.
- eventDialogEndsRadioGroup Styles applied to the event dialog ends radio group element.
- eventDialogForm Styles applied to the event dialog form element.
- eventDialogFormActions Styles applied to the event dialog form actions element.
- eventDialogFormDivider Styles applied to the event dialog form divider element.
- eventDialogFrequencySelect Styles applied to the event dialog frequency select element.
- eventDialogHeader Styles applied to the event dialog header element.
- eventDialogHeaderActions Styles applied to the event dialog header actions container element.
- eventDialogInlineRow Styles applied to the event dialog inline row element.
- eventDialogPaper Styles applied to the event dialog paper element.
- eventDialogRadioButtonLabel Styles applied to the event dialog radio button label element.
- eventDialogReadonlyContent Styles applied to the event dialog readonly content element.
- eventDialogRecurrenceIcon Styles applied to the event dialog recurrence icon element.
- eventDialogRecurrenceLabel Styles applied to the event dialog recurrence label element.
- eventDialogRecurrenceLabelContainer Styles applied to the event dialog recurrence label container element in the readonly content.
- eventDialogRecurrenceSelectorContainer Styles applied to the event dialog recurrence selector container element.
- eventDialogRecurrenceSelectorToggleGroup Styles applied to the event dialog recurrence selector toggle group element.
- eventDialogRecurrenceTimezoneLabel Styles applied to the recurrence timezone note and label suffix elements.
- eventDialogRepeatSectionContent Styles applied to the event dialog repeat section content element.
- eventDialogRepeatSectionFieldset Styles applied to the event dialog repeat section fieldset element.
- eventDialogRepeatSectionLabel Styles applied to the event dialog repeat section label element.
- eventDialogResourceContainer Styles applied to the event dialog resource container element.
- eventDialogResourceLegendColor Styles applied to the event dialog resource legend color element.
- eventDialogResourceLegendContainer Styles applied to the event dialog resource legend container element.
- eventDialogResourceMenuColorDot Styles applied to the event dialog resource menu color dot element.
- eventDialogResourceMenuColorToggle Styles applied to the event dialog resource menu color toggle element.
- eventDialogResourceMenuColorToggleGroup Styles applied to the event dialog resource menu color toggle group element.
- eventDialogResourceMenuItem Styles applied to the event dialog resource menu item element.
- eventDialogResourceMenuListSubheader Styles applied to the event dialog resource menu list subheader element.
- eventDialogResourceTitle Styles applied to the event dialog resource title element.
- eventDialogSaveButton Styles applied to the event dialog save button element.
- eventDialogSectionFieldset Styles applied to the event dialog section fieldset element.
- eventDialogSectionHeaderTitle Styles applied to the event dialog section header title element.
- eventDialogSmallNumberField Styles applied to the event dialog small number field element.
- eventDialogTab Styles applied to the event dialog tab elements.
- eventDialogTabContent Styles applied to the event dialog tab content element.
- eventDialogTabPanel Styles applied to the event dialog tab panel element.
- eventDialogTabsContainer Styles applied to the event dialog tabs container element.
- eventDialogTitle Styles applied to the event dialog title element.
- eventDialogWeekDaySelectorCheckbox Styles applied to the event dialog week day selector form group element.
- eventDragPreview Styles applied to the event drag preview element.
- eventItemCard Styles applied to event item card elements.
- eventItemCardContent Styles applied to event item card content elements.
- eventItemCardWrapper Styles applied to event item card wrapper elements.
- eventItemLinesClamp Styles applied to event item lines clamp elements.
- eventItemRecurringIcon Styles applied to event item recurring icon elements.
- eventItemTime Styles applied to event item time elements.
- eventItemTitle Styles applied to event item title elements.
- eventSkeleton Styles applied to the event skeleton element.
- eventToolbar Styles applied to the armed-event toolbar root element.
- eventToolbarDeleteButton Styles applied to the armed-event toolbar delete button element.
- eventToolbarEditButton Styles applied to the armed-event toolbar edit button element.
- headerToolbar Styles applied to the header toolbar element.
- headerToolbarActions Styles applied to the header toolbar actions element.
- headerToolbarCompactMenuButton Styles applied to the header toolbar compact menu button element (compact layout).
- headerToolbarCompactTodayButton Styles applied to the header toolbar compact today button element (compact layout).
- headerToolbarDateNavigator Styles applied to the header toolbar date navigator buttons container element.
- headerToolbarLabel Styles applied to the header toolbar label element.
- headerToolbarLeftElement Styles applied to the header toolbar left side element.
- headerToolbarNextButton Styles applied to the header toolbar next button element.
- headerToolbarPreviousButton Styles applied to the header toolbar previous button element.
- headerToolbarSidePanelToggle Styles applied to the header toolbar side panel toggle button element.
- headerToolbarTodayButton Styles applied to the header toolbar today button element.
- headerToolbarWeekNumber Styles applied to the header toolbar week number element.
- mainPanel Styles applied to the main panel element.
- miniCalendar Styles applied to the mini calendar root element.
- miniCalendarDayButton Styles applied to mini calendar day buttons.
- miniCalendarDayCell Styles applied to mini calendar day cells.
- miniCalendarGrid Styles applied to the mini calendar grid (body).
- miniCalendarHeader Styles applied to the mini calendar header element.
- miniCalendarMonthLabel Styles applied to the mini calendar month label.
- miniCalendarNavigation Styles applied to the mini calendar header navigation container.
- miniCalendarNextButton Styles applied to the mini calendar next button element.
- miniCalendarPreviousButton Styles applied to the mini calendar previous button element.
- miniCalendarWeekdayCell Styles applied to individual mini calendar weekday header cells.
- miniCalendarWeekdayHeader Styles applied to the mini calendar weekday header row.
- miniCalendarWeekRow Styles applied to mini calendar week rows.
- monthView Styles applied to the month view root element.
- monthViewBody Styles applied to the month view body element.
- monthViewCell Styles applied to month view cell elements.
- monthViewCellEvents Styles applied to month view cell events container elements.
- monthViewCellNumber Styles applied to month view cell number elements.
- monthViewCellNumberButton Styles applied to month view cell number button elements.
- monthViewGrid Styles applied to the month view grid element.
- monthViewHeader Styles applied to the month view header element.
- monthViewHeaderCell Styles applied to month view header cell elements.
- monthViewMoreEvents Styles applied to month view more events button elements.
- monthViewPlaceholderContainer Styles applied to month view placeholder event container elements.
- monthViewRow Styles applied to month view row elements.
- monthViewWeekHeaderCell Styles applied to the month view week header cell element.
- monthViewWeekNumberCell Styles applied to month view week number cell elements.
- moreEventsPopover Styles applied to the more events popover element.
- moreEventsPopoverBody Styles applied to the more events popover body element.
- moreEventsPopoverHeader Styles applied to the more events popover header element.
- moreEventsPopoverTitle Styles applied to the more events popover title element.
- preferencesMenu Styles applied to the preferences menu element.
- preferencesMenuButton Styles applied to the preferences menu button element.
- preferencesMenuDivider Styles applied to the preferences menu divider elements.
- preferencesMenuItem Styles applied to the preferences menu item elements.
- preferencesMenuList Styles applied to the preferences menu list element.
- preferencesMenuListItemIcon Styles applied to the preferences menu list item icon elements.
- preferencesMenuListItemText Styles applied to the preferences menu list item text elements.
- preferencesMenuListSubheader Styles applied to the preferences menu list subheader elements.
- resourceLegendColor Styles applied to event item resource legend color elements.
- resourcesTree Styles applied to the resources tree root element.
- resourcesTreeItem Styles applied to resources tree item elements.
- resourcesTreeItemCheckbox Styles applied to resources tree item checkbox elements.
- resourcesTreeItemLabel Styles applied to resources tree item label elements.
- resourcesTreeLabel Styles applied to the resources tree section label element.
- root Styles applied to the root element.
- sidePanel Styles applied to the side panel element.
- sidePanelCollapse Styles applied to the side panel collapse element.
- sidePanelDivider Styles applied to the side panel divider element.
- sidePanelDrawer Styles applied to the side panel drawer paper (popup) element (compact layout).
- sidePanelDrawerBackdrop Styles applied to the side panel drawer backdrop element.
- sidePanelDrawerCloseButton Styles applied to the side panel drawer close button element.
- sidePanelDrawerHeader Styles applied to the side panel drawer header element.
- sidePanelDrawerPreferences Styles applied to the side panel drawer preferences entry list element.
- sidePanelDrawerPreferencesButton Styles applied to the side panel drawer preferences button element.
- sidePanelDrawerPreferencesList Styles applied to the side panel drawer collapsible preferences options list element.
- sidePanelDrawerTitle Styles applied to the side panel drawer title element.
- sidePanelDrawerViewItem Styles applied to side panel drawer view list item elements.
- sidePanelDrawerViewList Styles applied to the side panel drawer view list element.
- sidePanelDrawerViewport Styles applied to the side panel drawer root (modal) element.
- standaloneEvent Styles applied to the standalone event element.
- timeGridEvent Styles applied to time grid event elements.
- timeGridEventPlaceholder Styles applied to time grid event placeholder elements.
- timeGridEventRecurringIcon Styles applied to time grid event recurring icon elements.
- timeGridEventResizeHandler Styles applied to time grid event resize handler elements.
- timeGridEventSkeleton Styles applied to time grid event skeleton elements.
- timeGridEventTime Styles applied to time grid event time elements.
- timeGridEventTitle Styles applied to time grid event title elements.
- viewSwitcher Styles applied to the view switcher element.
- viewSwitcherButton Styles applied to the view switcher button element.
- viewSwitcherMenu Styles applied to the view switcher menu element.

소스 코드

이 페이지에서 정보를 찾지 못했다면, 더 자세한 내용을 위해 컴포넌트의 구현을 살펴보세요.

EventTimelinePremium API

데모(Demos)

이 React 컴포넌트 사용에 대한 예제와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:

Import

import { EventTimelinePremium } from '@mui/x-scheduler-premium/event-timeline-premium';
// or
import { EventTimelinePremium } from '@mui/x-scheduler-premium';

Props

Name Type Default Required Description
apiRef { current?: { goToNextVisibleDate?: func, goToPreviousVisibleDate?: func, setVisibleDate?: func } } - No
areEventsDraggable bool true No
areEventsResizable 'end' | 'start' | bool true No
canDragEventsFromTheOutside bool false No
canDropEventsToTheOutside bool false No
classes object - No Override or extend the styles applied to the component.
collapsedResources object - No
dataSource { getEvents: func, persistEvents: func } - No
dateLocale object enUS (English) No
defaultCollapsedResources object {} - all resources are expanded No
defaultPreferences { ampm?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } { ampm: true } No
defaultPreset 'dayAndHour' | 'dayAndMonth' | 'dayAndWeek' | 'monthAndYear' | 'year' "dayAndHour" No
defaultVisibleDate Date today No
defaultVisibleResources object {} - all resources are visible No
displayTimezone string "default" No
eventColor 'amber' | 'blue' | 'green' | 'grey' | 'indigo' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' "teal" No
eventCreation { canHaveMultipleResources?: bool, duration?: number, interaction?: 'click' | 'double-click' } | bool - No
eventModelStructure object - No
events Array<object> [] No
getEventAriaLabel function(parameters: EventTimelineGetEventAriaLabelParameters) => string - No
localeText object - No
onCollapsedResourcesChange func - No
onEventEditingStart func - No
onEventsChange func - No
onPresetChange func - No
onVisibleDateChange func - No
onVisibleResourcesChange func - No
preferences { ampm?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } - No
preset 'dayAndHour' | 'dayAndMonth' | 'dayAndWeek' | 'monthAndYear' | 'year' - No
presetConfig { dayAndHour?: { endTime?: number, startTime?: number } } - No
presets Array<'dayAndHour' | 'dayAndMonth' | 'dayAndWeek' | 'monthAndYear' | 'year'> ["dayAndHour", "dayAndMonth", "dayAndWeek", "monthAndYear", "year"] No
readOnly bool false No
resourceColumnLabel string - No
resourceModelStructure object - No
resources Array<object> - No
shouldEventRequireResource bool true No
showCurrentTimeIndicator bool true No
slotProps object {} No
slots object {} No
sx Array<func | object | bool> | func | object - No The system prop that allows defining system overrides as well as additional CSS styles.
visibleDate Date - No
visibleResources object - No

Note: The ref is forwarded to the root element (HTMLDivElement).

Any other props supplied will be provided to the root element (native element).

테마 기본 props

MuiEventTimelinePremium를 사용하면 테마로 이 컴포넌트의 기본 props를 변경할 수 있습니다.

Slots

Name Default Class Description
eventDialogGeneralTab EventDialogGeneralTabContent - The content of the "General" tab of the event editing surface:
the dialog on regular views, the compact editing drawer on compact views.
It is rendered inside the tab panel, so it must not render a tab panel of its own.
Return a fragment rather than a wrapper element to keep the spacing between the sections.
timelineEventContent the occurrence title - The content of an event block.
It replaces the title text and is rendered inside the block, so the block keeps its
geometry, its drag and resize handles, and its button semantics.
The content doesn't change the accessible name of the event, which is built from its data:
use getEventAriaLabel to announce the details it adds.
timelineResourceTitle the resource title - The content of a resource title cell.
It replaces the title text and is rendered next to the legend color and the collapse toggle.
The events of the row announce the resource through their own accessible name, so the
content doesn't change it.

CSS

Rule name

Global class Rule name Description
- anchoredEventToolbar Styles applied to the anchored (desktop) armed-event toolbar wrapper element.
- compactDayTimeGrid Styles applied to the compact (touch) day time grid root element.
- compactDayTimeGridContent Styles applied to the compact (touch) day time grid content element.
- compactEventDrawer Styles applied to the compact editing drawer root element.
- compactEventDrawerContent Styles applied to the compact editing drawer content element.
- compactEventDrawerReadonlyHeader Styles applied to the compact editing drawer read-only header element.
- compactEventDrawerReadonlyTitle Styles applied to the compact editing drawer read-only title element.
- compactEventToolbarDock Styles applied to the compact (touch) armed-event toolbar dock element.
- content Styles applied to the content section element.
- currentTimeIndicator Styles applied to the current time indicator element.
- currentTimeIndicatorCircle Styles applied to the current time indicator circle element.
- errorAlert Styles applied to the error alert element.
- errorContainer Styles applied to the error container element.
- errorMessage Styles applied to the error message element.
- event Styles applied to event elements.
- eventContextMenu Styles applied to the event context menu root element.
- eventContextMenuDeleteItem Styles applied to the event context menu delete item element.
- eventContextMenuEditItem Styles applied to the event context menu edit item element.
- eventContextMenuShowDetailsItem Styles applied to the event context menu show details item element (read-only events).
- eventDialog Styles applied to the event dialog root element.
- eventDialogActions Styles applied to the event dialog actions element.
- eventDialogCloseAction Styles applied to the event dialog close action button element.
- eventDialogCloseButton Styles applied to the event dialog close button element.
- eventDialogContent Styles applied to the event dialog content element.
- eventDialogDateTimeContainer Styles applied to the event dialog date time container element.
- eventDialogDateTimeFieldsContainer Styles applied to the event dialog date time fields container element.
- eventDialogDateTimeFieldsRow Styles applied to the event dialog date time fields row element.
- eventDialogDateTimeIcon Styles applied to the event dialog date time icon element.
- eventDialogDateTimeLabel Styles applied to the event dialog date time label element.
- eventDialogDeleteButton Styles applied to the event dialog delete button element.
- eventDialogDescriptionLabel Styles applied to the event dialog description label element.
- eventDialogEndsRadioGroup Styles applied to the event dialog ends radio group element.
- eventDialogForm Styles applied to the event dialog form element.
- eventDialogFormActions Styles applied to the event dialog form actions element.
- eventDialogFormDivider Styles applied to the event dialog form divider element.
- eventDialogFrequencySelect Styles applied to the event dialog frequency select element.
- eventDialogHeader Styles applied to the event dialog header element.
- eventDialogHeaderActions Styles applied to the event dialog header actions container element.
- eventDialogInlineRow Styles applied to the event dialog inline row element.
- eventDialogPaper Styles applied to the event dialog paper element.
- eventDialogRadioButtonLabel Styles applied to the event dialog radio button label element.
- eventDialogReadonlyContent Styles applied to the event dialog readonly content element.
- eventDialogRecurrenceIcon Styles applied to the event dialog recurrence icon element.
- eventDialogRecurrenceLabel Styles applied to the event dialog recurrence label element.
- eventDialogRecurrenceLabelContainer Styles applied to the event dialog recurrence label container element in the readonly content.
- eventDialogRecurrenceSelectorContainer Styles applied to the event dialog recurrence selector container element.
- eventDialogRecurrenceSelectorToggleGroup Styles applied to the event dialog recurrence selector toggle group element.
- eventDialogRecurrenceTimezoneLabel Styles applied to the recurrence timezone note and label suffix elements.
- eventDialogRepeatSectionContent Styles applied to the event dialog repeat section content element.
- eventDialogRepeatSectionFieldset Styles applied to the event dialog repeat section fieldset element.
- eventDialogRepeatSectionLabel Styles applied to the event dialog repeat section label element.
- eventDialogResourceContainer Styles applied to the event dialog resource container element.
- eventDialogResourceLegendColor Styles applied to the event dialog resource legend color element.
- eventDialogResourceLegendContainer Styles applied to the event dialog resource legend container element.
- eventDialogResourceMenuColorDot Styles applied to the event dialog resource menu color dot element.
- eventDialogResourceMenuColorToggle Styles applied to the event dialog resource menu color toggle element.
- eventDialogResourceMenuColorToggleGroup Styles applied to the event dialog resource menu color toggle group element.
- eventDialogResourceMenuItem Styles applied to the event dialog resource menu item element.
- eventDialogResourceMenuListSubheader Styles applied to the event dialog resource menu list subheader element.
- eventDialogResourceTitle Styles applied to the event dialog resource title element.
- eventDialogSaveButton Styles applied to the event dialog save button element.
- eventDialogSectionFieldset Styles applied to the event dialog section fieldset element.
- eventDialogSectionHeaderTitle Styles applied to the event dialog section header title element.
- eventDialogSmallNumberField Styles applied to the event dialog small number field element.
- eventDialogTab Styles applied to the event dialog tab elements.
- eventDialogTabContent Styles applied to the event dialog tab content element.
- eventDialogTabPanel Styles applied to the event dialog tab panel element.
- eventDialogTabsContainer Styles applied to the event dialog tabs container element.
- eventDialogTitle Styles applied to the event dialog title element.
- eventDialogWeekDaySelectorCheckbox Styles applied to the event dialog week day selector form group element.
- eventLinesClamp Styles applied to event lines clamp elements.
- eventPlaceholder Styles applied to event placeholder elements.
- eventRecurringIcon Styles applied to event recurring icon elements.
- eventResizeHandler Styles applied to event resize handler elements.
- eventsCell Styles applied to the events cell element in a body row.
- eventsHeaderCell Styles applied to the events header cell element.
- eventsHeaderCellContent Styles applied to the events header cell content element.
- eventSkeleton Styles applied to the event skeleton element.
- eventToolbar Styles applied to the armed-event toolbar root element.
- eventToolbarDeleteButton Styles applied to the armed-event toolbar delete button element.
- eventToolbarEditButton Styles applied to the armed-event toolbar edit button element.
- grid Styles applied to the grid element.
- header Styles applied to the generic header (wraps all level rows).
- headerCell Styles applied to each cell inside a header level row.
- headerCellLabel Styles applied to the label element inside a header cell.
- headerLevelRow Styles applied to each level row inside the generic header.
- headerRow Styles applied to the top row of the grid (contains the title and events headers).
- root Styles applied to the root element.
- titleCell Styles applied to the title cell element.
- titleCellContent Styles applied to the title cell content wrapper element.
- titleCellLegendColor Styles applied to the title cell legend color element.
- titleCellRow Styles applied to the title cell row element.
- titleHeaderCell Styles applied to the title header cell element.

소스 코드

이 페이지에서 정보를 찾지 못했다면, 더 자세한 내용을 위해 컴포넌트의 구현을 살펴보세요.

StandaloneAgendaView API

데모(Demos)

이 React 컴포넌트 사용에 대한 예제와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:

Import

import { StandaloneAgendaView } from '@mui/x-scheduler/agenda-view';
// or
import { StandaloneAgendaView } from '@mui/x-scheduler';

Props

Name Type Default Required Description
areEventsDraggable bool true No
areEventsResizable 'end' | 'start' | bool true No
canDragEventsFromTheOutside bool false No
canDropEventsToTheOutside bool false No
dateLocale object enUS (English) No
defaultPreferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } { showWeekends: true, showWeekNumber: false, isSidePanelOpen: true, showEmptyDaysInAgenda: true, ampm: true } No
defaultView 'agenda' | 'day' | 'month' | 'week' "week" No
defaultVisibleDate Date today No
defaultVisibleResources object {} - all resources are visible No
displayTimezone string "default" No
eventColor 'amber' | 'blue' | 'green' | 'grey' | 'indigo' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' "teal" No
eventCreation { canHaveMultipleResources?: bool, duration?: number, interaction?: 'click' | 'double-click' } | bool - No
eventModelStructure object - No
events Array<object> [] No
localeText object - No
onEventEditingStart func - No
onEventsChange func - No
onPreferencesChange func - No
onViewChange func - No
onVisibleDateChange func - No
onVisibleResourcesChange func - No
preferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } - No
preferencesMenuConfig false | { toggleAmpm?: bool, toggleEmptyDaysInAgenda?: bool, toggleWeekendVisibility?: bool, toggleWeekNumberVisibility?: bool, toggleWeekStartsOn?: bool } { toggleWeekendVisibility: true, toggleWeekNumberVisibility: true, toggleAmpm: true, toggleEmptyDaysInAgenda: true, toggleWeekStartsOn: false } No
readOnly bool false No
resourceModelStructure object - No
resources Array<object> - No
shouldEventRequireResource bool false No
showCurrentTimeIndicator bool true No
slotProps object {} No
slots object {} No
sx Array<func | object | bool> | func | object - No The system prop that allows defining system overrides as well as additional CSS styles.
view 'agenda' | 'day' | 'month' | 'week' - No
viewConfig object - No
views Array<'agenda' | 'day' | 'month' | 'week'> ["day", "week", "month", "agenda"] No
visibleDate Date - No
visibleResources object - No

Note: The ref is forwarded to the root element (HTMLDivElement).

Any other props supplied will be provided to the root element (native element).

Slots

Name Default Class Description
eventDialogGeneralTab EventDialogGeneralTabContent - The content of the "General" tab of the event editing surface:
the dialog on regular views, the compact editing drawer on compact views.
It is rendered inside the tab panel, so it must not render a tab panel of its own.
Return a fragment rather than a wrapper element to keep the spacing between the sections.

소스 코드

이 페이지에서 정보를 찾지 못했다면, 더 자세한 내용을 위해 컴포넌트의 구현을 살펴보세요.

StandaloneAgendaViewPremium API

데모(Demos)

이 React 컴포넌트 사용에 대한 예제와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:

Import

import { StandaloneAgendaViewPremium } from '@mui/x-scheduler-premium/agenda-view-premium';
// or
import { StandaloneAgendaViewPremium } from '@mui/x-scheduler-premium';

Props

Name Type Default Required Description
areEventsDraggable bool true No
areEventsResizable 'end' | 'start' | bool true No
canDragEventsFromTheOutside bool false No
canDropEventsToTheOutside bool false No
dataSource { getEvents: func, persistEvents: func } - No
dateLocale object enUS (English) No
defaultPreferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } { showWeekends: true, showWeekNumber: false, isSidePanelOpen: true, showEmptyDaysInAgenda: true, ampm: true } No
defaultView 'agenda' | 'day' | 'month' | 'week' "week" No
defaultVisibleDate Date today No
defaultVisibleResources object {} - all resources are visible No
displayTimezone string "default" No
eventColor 'amber' | 'blue' | 'green' | 'grey' | 'indigo' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' "teal" No
eventCreation { canHaveMultipleResources?: bool, duration?: number, interaction?: 'click' | 'double-click' } | bool - No
eventModelStructure object - No
events Array<object> [] No
localeText object - No
onEventEditingStart func - No
onEventsChange func - No
onPreferencesChange func - No
onViewChange func - No
onVisibleDateChange func - No
onVisibleResourcesChange func - No
preferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } - No
preferencesMenuConfig false | { toggleAmpm?: bool, toggleEmptyDaysInAgenda?: bool, toggleWeekendVisibility?: bool, toggleWeekNumberVisibility?: bool, toggleWeekStartsOn?: bool } { toggleWeekendVisibility: true, toggleWeekNumberVisibility: true, toggleAmpm: true, toggleEmptyDaysInAgenda: true, toggleWeekStartsOn: false } No
readOnly bool false No
resourceModelStructure object - No
resources Array<object> - No
shouldEventRequireResource bool false No
showCurrentTimeIndicator bool true No
slotProps object {} No
slots object {} No
sx Array<func | object | bool> | func | object - No The system prop that allows defining system overrides as well as additional CSS styles.
view 'agenda' | 'day' | 'month' | 'week' - No
viewConfig object - No
views Array<'agenda' | 'day' | 'month' | 'week'> ["day", "week", "month", "agenda"] No
visibleDate Date - No
visibleResources object - No

Note: The ref is forwarded to the root element (HTMLDivElement).

Any other props supplied will be provided to the root element (native element).

Slots

Name Default Class Description
eventDialogGeneralTab EventDialogGeneralTabContent - The content of the "General" tab of the event editing surface:
the dialog on regular views, the compact editing drawer on compact views.
It is rendered inside the tab panel, so it must not render a tab panel of its own.
Return a fragment rather than a wrapper element to keep the spacing between the sections.

소스 코드

이 페이지에서 정보를 찾지 못했다면, 더 자세한 내용을 위해 컴포넌트의 구현을 살펴보세요.

StandaloneDayView API

데모(Demos)

이 React 컴포넌트 사용에 대한 예제와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:

Import

import { StandaloneDayView } from '@mui/x-scheduler/day-view';
// or
import { StandaloneDayView } from '@mui/x-scheduler';

Props

Name Type Default Required Description
areEventsDraggable bool true No
areEventsResizable 'end' | 'start' | bool true No
canDragEventsFromTheOutside bool false No
canDropEventsToTheOutside bool false No
dateLocale object enUS (English) No
defaultPreferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } { showWeekends: true, showWeekNumber: false, isSidePanelOpen: true, showEmptyDaysInAgenda: true, ampm: true } No
defaultView 'agenda' | 'day' | 'month' | 'week' "week" No
defaultVisibleDate Date today No
defaultVisibleResources object {} - all resources are visible No
displayTimezone string "default" No
eventColor 'amber' | 'blue' | 'green' | 'grey' | 'indigo' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' "teal" No
eventCreation { canHaveMultipleResources?: bool, duration?: number, interaction?: 'click' | 'double-click' } | bool - No
eventModelStructure object - No
events Array<object> [] No
localeText object - No
onEventEditingStart func - No
onEventsChange func - No
onPreferencesChange func - No
onViewChange func - No
onVisibleDateChange func - No
onVisibleResourcesChange func - No
preferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } - No
preferencesMenuConfig false | { toggleAmpm?: bool, toggleEmptyDaysInAgenda?: bool, toggleWeekendVisibility?: bool, toggleWeekNumberVisibility?: bool, toggleWeekStartsOn?: bool } { toggleWeekendVisibility: true, toggleWeekNumberVisibility: true, toggleAmpm: true, toggleEmptyDaysInAgenda: true, toggleWeekStartsOn: false } No
readOnly bool false No
resourceModelStructure object - No
resources Array<object> - No
shouldEventRequireResource bool false No
showCurrentTimeIndicator bool true No
slotProps object {} No
slots object {} No
sx Array<func | object | bool> | func | object - No The system prop that allows defining system overrides as well as additional CSS styles.
view 'agenda' | 'day' | 'month' | 'week' - No
viewConfig { day?: { endTime?: number, initialScrollTime?: number, startTime?: number } } - No
views Array<'agenda' | 'day' | 'month' | 'week'> ["day", "week", "month", "agenda"] No
visibleDate Date - No
visibleResources object - No

Note: The ref is forwarded to the root element (HTMLDivElement).

Any other props supplied will be provided to the root element (native element).

Slots

Name Default Class Description
eventDialogGeneralTab EventDialogGeneralTabContent - The content of the "General" tab of the event editing surface:
the dialog on regular views, the compact editing drawer on compact views.
It is rendered inside the tab panel, so it must not render a tab panel of its own.
Return a fragment rather than a wrapper element to keep the spacing between the sections.

소스 코드

이 페이지에서 정보를 찾지 못했다면, 더 자세한 내용을 위해 컴포넌트의 구현을 살펴보세요.

StandaloneDayViewPremium API

데모(Demos)

이 React 컴포넌트 사용에 대한 예제와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:

Import

import { StandaloneDayViewPremium } from '@mui/x-scheduler-premium/day-view-premium';
// or
import { StandaloneDayViewPremium } from '@mui/x-scheduler-premium';

Props

Name Type Default Required Description
areEventsDraggable bool true No
areEventsResizable 'end' | 'start' | bool true No
canDragEventsFromTheOutside bool false No
canDropEventsToTheOutside bool false No
dataSource { getEvents: func, persistEvents: func } - No
dateLocale object enUS (English) No
defaultPreferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } { showWeekends: true, showWeekNumber: false, isSidePanelOpen: true, showEmptyDaysInAgenda: true, ampm: true } No
defaultView 'agenda' | 'day' | 'month' | 'week' "week" No
defaultVisibleDate Date today No
defaultVisibleResources object {} - all resources are visible No
displayTimezone string "default" No
eventColor 'amber' | 'blue' | 'green' | 'grey' | 'indigo' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' "teal" No
eventCreation { canHaveMultipleResources?: bool, duration?: number, interaction?: 'click' | 'double-click' } | bool - No
eventModelStructure object - No
events Array<object> [] No
localeText object - No
onEventEditingStart func - No
onEventsChange func - No
onPreferencesChange func - No
onViewChange func - No
onVisibleDateChange func - No
onVisibleResourcesChange func - No
preferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } - No
preferencesMenuConfig false | { toggleAmpm?: bool, toggleEmptyDaysInAgenda?: bool, toggleWeekendVisibility?: bool, toggleWeekNumberVisibility?: bool, toggleWeekStartsOn?: bool } { toggleWeekendVisibility: true, toggleWeekNumberVisibility: true, toggleAmpm: true, toggleEmptyDaysInAgenda: true, toggleWeekStartsOn: false } No
readOnly bool false No
resourceModelStructure object - No
resources Array<object> - No
shouldEventRequireResource bool false No
showCurrentTimeIndicator bool true No
slotProps object {} No
slots object {} No
sx Array<func | object | bool> | func | object - No The system prop that allows defining system overrides as well as additional CSS styles.
view 'agenda' | 'day' | 'month' | 'week' - No
viewConfig { day?: { endTime?: number, initialScrollTime?: number, startTime?: number } } - No
views Array<'agenda' | 'day' | 'month' | 'week'> ["day", "week", "month", "agenda"] No
visibleDate Date - No
visibleResources object - No

Note: The ref is forwarded to the root element (HTMLDivElement).

Any other props supplied will be provided to the root element (native element).

Slots

Name Default Class Description
eventDialogGeneralTab EventDialogGeneralTabContent - The content of the "General" tab of the event editing surface:
the dialog on regular views, the compact editing drawer on compact views.
It is rendered inside the tab panel, so it must not render a tab panel of its own.
Return a fragment rather than a wrapper element to keep the spacing between the sections.

소스 코드

이 페이지에서 정보를 찾지 못했다면, 더 자세한 내용을 위해 컴포넌트의 구현을 살펴보세요.

StandaloneMonthView API

데모(Demos)

이 React 컴포넌트 사용에 대한 예제와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:

Import

import { StandaloneMonthView } from '@mui/x-scheduler/month-view';
// or
import { StandaloneMonthView } from '@mui/x-scheduler';

Props

Name Type Default Required Description
areEventsDraggable bool true No
areEventsResizable 'end' | 'start' | bool true No
canDragEventsFromTheOutside bool false No
canDropEventsToTheOutside bool false No
dateLocale object enUS (English) No
defaultPreferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } { showWeekends: true, showWeekNumber: false, isSidePanelOpen: true, showEmptyDaysInAgenda: true, ampm: true } No
defaultView 'agenda' | 'day' | 'month' | 'week' "week" No
defaultVisibleDate Date today No
defaultVisibleResources object {} - all resources are visible No
displayTimezone string "default" No
eventColor 'amber' | 'blue' | 'green' | 'grey' | 'indigo' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' "teal" No
eventCreation { canHaveMultipleResources?: bool, duration?: number, interaction?: 'click' | 'double-click' } | bool - No
eventModelStructure object - No
events Array<object> [] No
localeText object - No
onEventEditingStart func - No
onEventsChange func - No
onPreferencesChange func - No
onViewChange func - No
onVisibleDateChange func - No
onVisibleResourcesChange func - No
preferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } - No
preferencesMenuConfig false | { toggleAmpm?: bool, toggleEmptyDaysInAgenda?: bool, toggleWeekendVisibility?: bool, toggleWeekNumberVisibility?: bool, toggleWeekStartsOn?: bool } { toggleWeekendVisibility: true, toggleWeekNumberVisibility: true, toggleAmpm: true, toggleEmptyDaysInAgenda: true, toggleWeekStartsOn: false } No
readOnly bool false No
resourceModelStructure object - No
resources Array<object> - No
shouldEventRequireResource bool false No
showCurrentTimeIndicator bool true No
slotProps object {} No
slots object {} No
sx Array<func | object | bool> | func | object - No The system prop that allows defining system overrides as well as additional CSS styles.
view 'agenda' | 'day' | 'month' | 'week' - No
viewConfig object - No
views Array<'agenda' | 'day' | 'month' | 'week'> ["day", "week", "month", "agenda"] No
visibleDate Date - No
visibleResources object - No

Note: The ref is forwarded to the root element (HTMLDivElement).

Any other props supplied will be provided to the root element (native element).

Slots

Name Default Class Description
eventDialogGeneralTab EventDialogGeneralTabContent - The content of the "General" tab of the event editing surface:
the dialog on regular views, the compact editing drawer on compact views.
It is rendered inside the tab panel, so it must not render a tab panel of its own.
Return a fragment rather than a wrapper element to keep the spacing between the sections.

소스 코드

이 페이지에서 정보를 찾지 못했다면, 더 자세한 내용을 위해 컴포넌트의 구현을 살펴보세요.

StandaloneMonthViewPremium API

데모(Demos)

이 React 컴포넌트 사용에 대한 예제와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:

Import

import { StandaloneMonthViewPremium } from '@mui/x-scheduler-premium/month-view-premium';
// or
import { StandaloneMonthViewPremium } from '@mui/x-scheduler-premium';

Props

Name Type Default Required Description
areEventsDraggable bool true No
areEventsResizable 'end' | 'start' | bool true No
canDragEventsFromTheOutside bool false No
canDropEventsToTheOutside bool false No
dataSource { getEvents: func, persistEvents: func } - No
dateLocale object enUS (English) No
defaultPreferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } { showWeekends: true, showWeekNumber: false, isSidePanelOpen: true, showEmptyDaysInAgenda: true, ampm: true } No
defaultView 'agenda' | 'day' | 'month' | 'week' "week" No
defaultVisibleDate Date today No
defaultVisibleResources object {} - all resources are visible No
displayTimezone string "default" No
eventColor 'amber' | 'blue' | 'green' | 'grey' | 'indigo' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' "teal" No
eventCreation { canHaveMultipleResources?: bool, duration?: number, interaction?: 'click' | 'double-click' } | bool - No
eventModelStructure object - No
events Array<object> [] No
localeText object - No
onEventEditingStart func - No
onEventsChange func - No
onPreferencesChange func - No
onViewChange func - No
onVisibleDateChange func - No
onVisibleResourcesChange func - No
preferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } - No
preferencesMenuConfig false | { toggleAmpm?: bool, toggleEmptyDaysInAgenda?: bool, toggleWeekendVisibility?: bool, toggleWeekNumberVisibility?: bool, toggleWeekStartsOn?: bool } { toggleWeekendVisibility: true, toggleWeekNumberVisibility: true, toggleAmpm: true, toggleEmptyDaysInAgenda: true, toggleWeekStartsOn: false } No
readOnly bool false No
resourceModelStructure object - No
resources Array<object> - No
shouldEventRequireResource bool false No
showCurrentTimeIndicator bool true No
slotProps object {} No
slots object {} No
sx Array<func | object | bool> | func | object - No The system prop that allows defining system overrides as well as additional CSS styles.
view 'agenda' | 'day' | 'month' | 'week' - No
viewConfig object - No
views Array<'agenda' | 'day' | 'month' | 'week'> ["day", "week", "month", "agenda"] No
visibleDate Date - No
visibleResources object - No

Note: The ref is forwarded to the root element (HTMLDivElement).

Any other props supplied will be provided to the root element (native element).

Slots

Name Default Class Description
eventDialogGeneralTab EventDialogGeneralTabContent - The content of the "General" tab of the event editing surface:
the dialog on regular views, the compact editing drawer on compact views.
It is rendered inside the tab panel, so it must not render a tab panel of its own.
Return a fragment rather than a wrapper element to keep the spacing between the sections.

소스 코드

이 페이지에서 정보를 찾지 못했다면, 더 자세한 내용을 위해 컴포넌트의 구현을 살펴보세요.

StandaloneWeekView API

데모(Demos)

이 React 컴포넌트 사용에 대한 예제와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:

Import

import { StandaloneWeekView } from '@mui/x-scheduler/week-view';
// or
import { StandaloneWeekView } from '@mui/x-scheduler';

Props

Name Type Default Required Description
areEventsDraggable bool true No
areEventsResizable 'end' | 'start' | bool true No
canDragEventsFromTheOutside bool false No
canDropEventsToTheOutside bool false No
dateLocale object enUS (English) No
defaultPreferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } { showWeekends: true, showWeekNumber: false, isSidePanelOpen: true, showEmptyDaysInAgenda: true, ampm: true } No
defaultView 'agenda' | 'day' | 'month' | 'week' "week" No
defaultVisibleDate Date today No
defaultVisibleResources object {} - all resources are visible No
displayTimezone string "default" No
eventColor 'amber' | 'blue' | 'green' | 'grey' | 'indigo' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' "teal" No
eventCreation { canHaveMultipleResources?: bool, duration?: number, interaction?: 'click' | 'double-click' } | bool - No
eventModelStructure object - No
events Array<object> [] No
localeText object - No
onEventEditingStart func - No
onEventsChange func - No
onPreferencesChange func - No
onViewChange func - No
onVisibleDateChange func - No
onVisibleResourcesChange func - No
preferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } - No
preferencesMenuConfig false | { toggleAmpm?: bool, toggleEmptyDaysInAgenda?: bool, toggleWeekendVisibility?: bool, toggleWeekNumberVisibility?: bool, toggleWeekStartsOn?: bool } { toggleWeekendVisibility: true, toggleWeekNumberVisibility: true, toggleAmpm: true, toggleEmptyDaysInAgenda: true, toggleWeekStartsOn: false } No
readOnly bool false No
resourceModelStructure object - No
resources Array<object> - No
shouldEventRequireResource bool false No
showCurrentTimeIndicator bool true No
slotProps object {} No
slots object {} No
sx Array<func | object | bool> | func | object - No The system prop that allows defining system overrides as well as additional CSS styles.
view 'agenda' | 'day' | 'month' | 'week' - No
viewConfig { week?: { endTime?: number, initialScrollTime?: number, startTime?: number } } - No
views Array<'agenda' | 'day' | 'month' | 'week'> ["day", "week", "month", "agenda"] No
visibleDate Date - No
visibleResources object - No

Note: The ref is forwarded to the root element (HTMLDivElement).

Any other props supplied will be provided to the root element (native element).

Slots

Name Default Class Description
eventDialogGeneralTab EventDialogGeneralTabContent - The content of the "General" tab of the event editing surface:
the dialog on regular views, the compact editing drawer on compact views.
It is rendered inside the tab panel, so it must not render a tab panel of its own.
Return a fragment rather than a wrapper element to keep the spacing between the sections.

소스 코드

이 페이지에서 정보를 찾지 못했다면, 더 자세한 내용을 위해 컴포넌트의 구현을 살펴보세요.

StandaloneWeekViewPremium API

데모(Demos)

이 React 컴포넌트 사용에 대한 예제와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:

Import

import { StandaloneWeekViewPremium } from '@mui/x-scheduler-premium/week-view-premium';
// or
import { StandaloneWeekViewPremium } from '@mui/x-scheduler-premium';

Props

Name Type Default Required Description
areEventsDraggable bool true No
areEventsResizable 'end' | 'start' | bool true No
canDragEventsFromTheOutside bool false No
canDropEventsToTheOutside bool false No
dataSource { getEvents: func, persistEvents: func } - No
dateLocale object enUS (English) No
defaultPreferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } { showWeekends: true, showWeekNumber: false, isSidePanelOpen: true, showEmptyDaysInAgenda: true, ampm: true } No
defaultView 'agenda' | 'day' | 'month' | 'week' "week" No
defaultVisibleDate Date today No
defaultVisibleResources object {} - all resources are visible No
displayTimezone string "default" No
eventColor 'amber' | 'blue' | 'green' | 'grey' | 'indigo' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' "teal" No
eventCreation { canHaveMultipleResources?: bool, duration?: number, interaction?: 'click' | 'double-click' } | bool - No
eventModelStructure object - No
events Array<object> [] No
localeText object - No
onEventEditingStart func - No
onEventsChange func - No
onPreferencesChange func - No
onViewChange func - No
onVisibleDateChange func - No
onVisibleResourcesChange func - No
preferences { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } - No
preferencesMenuConfig false | { toggleAmpm?: bool, toggleEmptyDaysInAgenda?: bool, toggleWeekendVisibility?: bool, toggleWeekNumberVisibility?: bool, toggleWeekStartsOn?: bool } { toggleWeekendVisibility: true, toggleWeekNumberVisibility: true, toggleAmpm: true, toggleEmptyDaysInAgenda: true, toggleWeekStartsOn: false } No
readOnly bool false No
resourceModelStructure object - No
resources Array<object> - No
shouldEventRequireResource bool false No
showCurrentTimeIndicator bool true No
slotProps object {} No
slots object {} No
sx Array<func | object | bool> | func | object - No The system prop that allows defining system overrides as well as additional CSS styles.
view 'agenda' | 'day' | 'month' | 'week' - No
viewConfig { week?: { endTime?: number, initialScrollTime?: number, startTime?: number } } - No
views Array<'agenda' | 'day' | 'month' | 'week'> ["day", "week", "month", "agenda"] No
visibleDate Date - No
visibleResources object - No

Note: The ref is forwarded to the root element (HTMLDivElement).

Any other props supplied will be provided to the root element (native element).

Slots

Name Default Class Description
eventDialogGeneralTab EventDialogGeneralTabContent - The content of the "General" tab of the event editing surface:
the dialog on regular views, the compact editing drawer on compact views.
It is rendered inside the tab panel, so it must not render a tab panel of its own.
Return a fragment rather than a wrapper element to keep the spacing between the sections.

소스 코드

이 페이지에서 정보를 찾지 못했다면, 더 자세한 내용을 위해 컴포넌트의 구현을 살펴보세요.

더 알아보기 (Learn more)