frappe / gantt

Open Source Javascript Gantt
https://frappe.io/gantt
MIT License
4.6k stars 1.02k forks source link

Rewrite Framework #393

Closed safwansamsudeen closed 4 months ago

safwansamsudeen commented 5 months ago

This PR brings in the big features asked in Gantt issues, as part of the rejuvenation of the library in April 2024.

Features

  1. Readonly mode is available (with the readonly option, by default false) - closes #323, closes #351
  2. Weekends are highlighted (with the highlight_weekend option, by default true) - closes #102
  3. Header is fixed - closes #115
  4. Thumbnails are supported (with the thumbnail option, pass in image URL) - fixes #213
  5. Label moves with horizontal scrolling.
  6. More events (breaking): on_click fires now on a single click, with on_double_click for double clicks. on_hover also is available - closes #342, closes #343, closes #40
  7. Scroll to today when the chart is rendered (with the scroll_to option, by default start, change to today) - closes #112; or specific date (pass a date string or date object to scroll_to) - closes #112, closes #133
  8. "Today" button that scrolls to today while clicked (turn off with the today_button option)
  9. View mode select that changes the view mode (turn on with the view_mode_select option)
  10. Date highlight in the header when hovered
  11. Hover now results in the popup (after a delay of 300 ms) and clicking results in the editing option.
  12. Allow user to dynamically generate lower/upper text via the lower_text and upper_text options by passing in a function - closes #119. This function takes the date, the view mode, and the default text supplied by the framework as its parameters.
  13. Lines can be turned on and off using the lines option: defaults to both, can specify either horizontal or vertical or none.
  14. Popup can be turned off (breaking): the popup option has replaced the custom_poup_html option, and setting it to false will turn off the popup - closes #144. Additionally, the popup now shows where you click - closes #39.

UI

The design has been vastly improved. Color schemes have changed, header has been improved, handle designs have been updated, and many other changes.

Bugs Fixed

And many, many, others.