Modify

Opened 3 years ago

Last modified 16 months ago

#9667 assigned enhancement

Feature to auto-scroll gantt

Reported by: dinu Owned by: ChrisNelson
Priority: normal Component: TracJsGanttPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Is it possible to add a parameter to trigger initial horizontal scroll of the gantt? I don't know what the best approach would be, I'm wanting something like "Show me 2 days in the past by default"... it would be nice if there would be something like initialScroll=-2 (where the number represents the number of days either in the future or in the past where the graphs origin should be set).

Attachments (0)

Change History (2)

comment:1 Changed 16 months ago by ChrisNelson

  • Status changed from new to assigned

I have added a scrollTo option in my local code base. It specifies a date that should be visible when the chart is first drawn. It can be set to a date in yyyy-mm-dd format or "today". With "today" set in site-wide chart options in trac.ini, I think you can accomplish most of what this ticket requires. I want to test that change locally a bit before I push to TH.

comment:2 Changed 16 months ago by ChrisNelson

(In [12964]) Add scrollTo option to Gantt chart. Refs #8532, #9667.

Add Comment

Modify Ticket

Action
as assigned .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.