1.2.0 • Published 7 months ago

react-scheduler-pro v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

React Scheduler Pro

React Scheduler Pro is a lightweight and powerful event Calender built with Flexbox. React Scheduler Pro – your essential toolkit for effortlessly managing schedules and events within your React applications.

Demo

Example

Installation

npm i react-scheduler-pro

or

yarn add react-scheduler-pro

Documenation

Documenatation

Usage

import { Scheduler } from "react-scheduler-pro";

Example

function App() {
  const evs = [
    {
      _id: 36,
      name: 'Owais',
      startDate: new Date(
        new Date(new Date(new Date().setHours(1))).setDate(12)
      ),
      endDate: new Date(new Date(new Date(new Date().setHours(5))).setDate(15)),
      resourceId: 2,
      backgroundColor: '#FFA447',
      isAllDay: true,
    },
    {
      _id: 47,
      name: 'B',
      startDate: new Date(
        new Date(new Date(new Date().setHours(1))).setDate(13)
      ),
      endDate: new Date(new Date(new Date(new Date().setHours(5))).setDate(31)),
      resourceId: 1,
      backgroundColor: '#0079FF',
    },
  ];
  const [events, setEvents] = useState<
    {
      _id: number;
      name: string;
      startDate: Date;
      endDate: Date;
      backgroundColor?: string;
      resourceId?: string | number;
      isAllDay?: boolean;
    }[]
  >(evs);

  return (
    <div className="App p-2">
      <Scheduler
        events={events}
        fields={{
          id: '_id',
          subject: 'name',
          start: 'startDate',
          end: 'endDate',
          allDay: 'isAllDay',
        }}
      />
    </div>
  );
}

Contribute

Show your ❤️ and support by giving a ⭐. Any suggestions are welcome! Take a look at the contributing guide.

Join The Community

Help us improve Scheduler Pro! Join us on Slack. (Slack invite links do expire. If you can't get in, just file an issue and we'll get a new link.)

1.2.0

7 months ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.3.9

1 year ago

0.3.8

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.3.7

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago