1.0.10 • Published 3 years ago

react-material-scheduler v1.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

React material scheduler is a react component based on @mui v5 that allows you to manage data in a calendar.

Installation

  npm install react-material-scheduler

Usage

 import React from 'react'
 import ReactDOM from 'react-dom'
 import Scheduler from "react-material-scheduler"
 
  function App() {
    const events = [
      {
        id: `event-1`,
        label: "Consultation médicale",
        title: "Dr Shaun Murphy",
        color: "#f28f6a",
        startHour: "9 AM",
        endHour: "10 AM",
        date: "2021-09-09",
        createdAt: new Date(),
        createdBy: "Kristina Mayer"
      },
      {
        id: `event-2`,
        label: "Consultation médicale",
        title: "Dr Claire Brown",
        color: "#099ce5",
        startHour: "9 AM",
        endHour: "10 AM",
        date: "2021-09-09",
        createdAt: new Date(),
        createdBy: "Kristina Mayer"
      },
      {
        id: `event-3`,
        label: "Consultation médicale",
        title: "Dr Menlendez Hary",
        color: "#263686",
        startHour: "13 AM",
        endHour: "14 AM",
        date: "2021-09-12",
        createdAt: new Date(),
        createdBy: "Kristina Mayer"
      },
    ]
    
    const onCellClick = (event, row, day) => {
      // Do something...
    }
    
    const onEventClick = (event, task) => {
      // Do something...
    }
    
    const onEventsChange = (item) => {
      // Do something...
    }
  
    return (
      <Scheduler
        events={events}
        openAlert={false}
        alertMessage={'This is a scheduler alert'}
        alertProps={{color: 'info', severity: 'success'}}
        onEventsChange={onEventsChange}
        onCellClick={onCellClick}
        onTaskClick={onEventClick}
      />
    )
  }

  ReactDOM.render(<App />, document.querySelector('#app'))

##Authors

FAQ

  • How do I use this with the @mui?

    Just install @mui in your project and you are done!

  • Where can I find more documentation?

    This library is a marriage of @mui and a React setup created with React. Either one would be a great place to start!

Extra

😊 Do you like this library ? Buy me a coffee
  • Btc address: 1A2VNHSLGDyYsKWniJBe8cCqYWC52NvNZx

  • Eth address: 0xFe444a01D9494Ec04f61797e15193C8016D666A5

License

react-material-scheduler

(The MIT License)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago