Create an Event Calendar in React Using Schedule-X | Step-by-Step Tutorial

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • In this video, I'll walk you through the process of setting up a fully functional event calendar in React using the Schedule-X library. Whether you're building a project management tool, a booking system, or any application that needs calendar functionality, Schedule-X makes it easy to implement.
    What You'll Learn:
    - How to install and configure Schedule-X in your React project
    - Creating events
    - How to install plugins
    Useful links:
    - GitHub: github.com/sch...
    - Website: schedule-x.dev
    - Schedule-X React docs: schedule-x.dev...
    #React #EventCalendar #ScheduleX #WebDevelopment #Programming #JavaScript #Tutorial

Комментарии • 19

  • @mahmoodtareq3520
    @mahmoodtareq3520 7 дней назад

    Thank you so much, Tom.
    Very well Explained.

  • @adam_frl
    @adam_frl 20 дней назад

    thank you for the insightful tutorial! it really helped me get up and running with the calendar!👍👍👍

    • @TomÖsterlund
      @TomÖsterlund  19 дней назад

      Glad to hear it was helpful! Hope the calendar can be of good use to you 🙂

  • @ngChinh04
    @ngChinh04 18 часов назад

    how can i change the detail of event when click on it? Tks

    • @TomÖsterlund
      @TomÖsterlund  16 часов назад

      There is a callback option that you can add in the config called `callbacks.onEventClick`, which takes the the clicked event as it's only parameter.

  • @PhuongNguyen-zf8wt
    @PhuongNguyen-zf8wt 13 часов назад

    and how to style event modal bro ?

    • @TomÖsterlund
      @TomÖsterlund  11 часов назад

      You can either just write your custom style overrides for this, or you can even replace its content by using custom components. Custom components is a feature of the framework adapters (like for Vue, React, Angular etc.). Are you using any of those?

  • @PhuongNguyen-zf8wt
    @PhuongNguyen-zf8wt 14 часов назад

    what about when i get data from backend and set to events is it work ?

    • @TomÖsterlund
      @TomÖsterlund  11 часов назад

      Sure thing! You can achieve this with the events service plugin. It's documented under "plugins" in the docs

  • @axellondas6297
    @axellondas6297 7 дней назад

    how to change event color ?

    • @TomÖsterlund
      @TomÖsterlund  3 дня назад

      For this you can use the "calendars" feature: schedule-x.dev/docs/calendar/calendars

  • @axellondas6297
    @axellondas6297 7 дней назад

    how to catch the case when i click on event ?

    • @axellondas6297
      @axellondas6297 7 дней назад

      2 and half after reading the doc i found the way you have to use callbacks
      this is the code
      ```jsx
      export const Calendar = () => {
      const onEventClick = useCallback((event) => {
      console.log('Event clicked:', event);
      // Add your custom logic here
      }, []);
      const calendar = useNextCalendarApp({
      views: [createViewMonthGrid(), createViewMonthAgenda(), createViewDay(), createViewWeek()],
      events: [
      {
      id: '1',
      title: 'Event 1',
      start: '2023-12-16 10:00',
      end: '2023-12-16 12:00',
      },
      ],
      selectedDate: '2023-12-16',
      callbacks: {
      onEventClick,
      },
      })
      return (

      );
      };
      ```

    • @TomÖsterlund
      @TomÖsterlund  7 дней назад

      You can add a `callbacks` section to the config object, and then add a callback `onEventClick`: schedule-x.dev/docs/calendar/configuration

  • @AaishaDev
    @AaishaDev 9 часов назад

    Can i have agenda view in this?

    • @TomÖsterlund
      @TomÖsterlund  7 часов назад

      Yes! there is an agenda view. The function you need to import is called `createViewMonthAgenda`

  • @yashkelhe376
    @yashkelhe376 3 дня назад

    Bro use dark theme mode 🥲

    • @TomÖsterlund
      @TomÖsterlund  3 дня назад

      never 😃
      I switched 3 years ago and just love working in light mode