This PR brings in the big features asked in Gantt issues, as part of the rejuvenation of the library in April 2024.
Features
Readonly mode is available (with the readonly option, by default false) - closes #323, closes #351
Weekends are highlighted (with the highlight_weekend option, by default true) - closes #102
Header is fixed - closes #115
Thumbnails are supported (with the thumbnail option, pass in image URL) - fixes #213
Label moves with horizontal scrolling.
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
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
"Today" button that scrolls to today while clicked (turn off with the today_button option)
View mode select that changes the view mode (turn on with the view_mode_select option)
Date highlight in the header when hovered
Hover now results in the popup (after a delay of 300 ms) and clicking results in the editing option.
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.
Lines can be turned on and off using the lines option: defaults to both, can specify either horizontal or vertical or none.
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
Bars disappearing
Task ID issue (closes #329)
Highlighting issue in year mode
Month label alignment (closes #212)
Popup disappearing after progress change (closes #354 and closes #334).
This PR brings in the big features asked in Gantt issues, as part of the rejuvenation of the library in April 2024.
Features
readonly
option, by defaultfalse
) - closes #323, closes #351highlight_weekend
option, by defaulttrue
) - closes #102thumbnail
option, pass in image URL) - fixes #213on_click
fires now on a single click, withon_double_click
for double clicks.on_hover
also is available - closes #342, closes #343, closes #40scroll_to
option, by defaultstart
, change totoday
) - closes #112; or specific date (pass a date string or date object toscroll_to
) - closes #112, closes #133today_button
option)view_mode_select
option)lower_text
andupper_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.lines
option: defaults toboth
, can specify eitherhorizontal
orvertical
ornone
.popup
option has replaced thecustom_poup_html
option, and setting it tofalse
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.