Skip to content

v3.0.0

Compare
Choose a tag to compare
@valincius valincius released this 27 Sep 20:13
· 87 commits to main since this release
5b3d5fd

Changes

  • Deprecates/Removes BlazorScheduler.Core
    • Removes the need for having your model implement BlazorScheduler.Core.IAppointment
      • Appointments are now components that may be changed dynamically without modifying the original reference
  • Typeparam removed from Scheduler (and all other components)
  • Removes OnAppointmentClick callback
  • Removes OnDayClick
  • Day number is no longer clickable by default
  • Adds Appointment component
    • This component should be rendered under a <Scheduler />
    • OnClick callback replaces Scheduler.OnAppointmentClick
    • ChildContent is rendered on the appointment instead of text, allowing for more customizability
    • Color is now a string rather than System.Drawing.Color
  • Callbacks have all had MouseEventArgs removed from their arguments
  • Moves ThemeColor & StartDayOfWeek to Config
  • ThemeColor is now a string
  • The header can now be templated (see demo)
  • The day component can now be templated (see demo)
  • Fixed weekday text to be truncated on smaller devices
  • Added configuration values for modifying the "Today" button and the text that shows for overflow appointments.
  • Added new demos to show the features and customizations
  • Day names are now localized
  • Added Invalidate method to Scheduler
    • This can be called to rerender child components incase you make updates to a template
      • Only necessary for day templates at the moment (see demo)
  • Added OnRequestNewData action
    • This is called on the first render & whenever the current date changes, so we can send a request and get the appointments for the current date range
  • Fixed weekday text in default header template for small devices
  • Added ability to customize the header row (Today button, changing month)
  • Added ability to customize the Month and Day names, and the "+ n others" text
  • Added New (better) demos
    • Base demo
    • Configuration demo
    • Interactions demo
    • Header template
    • Day template