feat: add OnClick EventCallBack to/in [FluentGanttChart]

Aperta
#5,569 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@vnbaaij ci sta già lavorando.

Dal 28/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

feature v5

🙋 Feature Request

Is it possible to add a OnClick event on the GanttChartDataPoint?
I would like to do an event: open a dialog, go to a page... when the user clicks on a block in the GanttChart.

🤔 Expected Behavior

When you click on a block in the Gantt, the function given thru the EventCallBack of the GanttChartDataPoint will be fired.

💻 Examples

private readonly IReadOnlyList<GanttChartDataPoint> chartData = [ new GanttChartDataPoint { X = new GanttChartXRange { Start = new DateTime(2009, 1, 1), End = new DateTime(2009, 2, 28) }, Y = "Job A", Legend = "Alex", Color = DataVizPalette.Color1, OnClick = EventCallback.Factory.Create<GanttChartDataPoint>(this, CustomHandleFunction) } ];

Lingua principale
C#
Stelle
4.9k
Fork
497
Merge medio
1g 1h
PR unite (30g)
47

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/fluentui-blazor

Tutte le issue di microsoft/fluentui-blazor

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.