You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/fxcore.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -380,6 +380,33 @@ func Register() fx.Option {
380
380
381
381
Note: you can also use `AsTasks()` to register several tasks at once.
382
382
383
+
#### Task grouping
384
+
385
+
If you have many tasks, you can group them in the dashboard sidebar by also implementing the `GroupedTask` interface:
386
+
387
+
```go title="internal/tasks/example.go"
388
+
func (t *ExampleTask) Group() string {
389
+
return "my group"
390
+
}
391
+
```
392
+
393
+
Tasks sharing the same group name will be collapsed under a single expandable entry in the sidebar, sorted alphabetically by group name alongside standalone tasks.
394
+
395
+
#### Input customisation
396
+
397
+
By default, each task is rendered in the dashboard with a single-row textarea and a generic placeholder. You can customise this by implementing the `TaskWithTemplateSettings` interface:
0 commit comments