# SchedulerGrouping (@salmonui/scheduler)

> The SchedulerGrouping interface of @salmonui/scheduler: Resource grouping.

Canonical: https://salmonui.dev/docs/reference/scheduler/SchedulerGrouping

```ts
import type { SchedulerGrouping } from '@salmonui/scheduler';
```

Entry index: https://salmonui.dev/docs/reference/scheduler (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/scheduler.md).

## Reference

Kind: interface

```ts
interface SchedulerGrouping {
    readonly resources: readonly string[];
    readonly byDate?: boolean;
    readonly byParent?: boolean;
    readonly sharedEvents?: boolean;
    readonly hideNonWorkingDays?: boolean;
}
```

Resource grouping.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `resources` | `readonly resources: readonly string[];` |  | Resource `name`s, outermost first: one header row (vertical views) or tree level (timeline views) each. |
| `byDate` | `readonly byDate?: boolean;` | optional | Dates above resources in day, week and month views. |
| `byParent` | `readonly byParent?: boolean;` | optional | Default true: children only under the parent their `parentIdField` names; false puts every child under every parent. |
| `sharedEvents` | `readonly sharedEvents?: boolean;` | optional | An event with several ids is one event in each of its resources: selecting one copy selects every copy. |
| `hideNonWorkingDays` | `readonly hideNonWorkingDays?: boolean;` | optional | Each resource shows only its own work days (`workDaysField`) in day, week and work week views. |
