← All Components
<mth-scheduler>
Resource timeline scheduler wrapping CalendarCore and @tanstack/virtual-core with RTL-aware keyboard date navigation and virtualized resource rows.
When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.
Live Interactive Preview
Ready · interact with <mth-scheduler>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/datagrid/scheduler"></script>
<mth-scheduler start-date="2026-01-05" days="7"></mth-scheduler>import '@methane-ui/datagrid/scheduler';
import '@methane-ui/react';
export function Example() {
return <mth-scheduler start-date="2026-01-05" days="7"></mth-scheduler>;
}<script setup lang="ts">
import '@methane-ui/datagrid/scheduler';
</script>
<template>
<mth-scheduler start-date="2026-01-05" days="7"></mth-scheduler>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/datagrid/scheduler';
import { MthSchedulerDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthSchedulerDirective],
template: `<mth-scheduler start-date="2026-01-05" days="7"></mth-scheduler>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/datagrid/scheduler';
import MthScheduler from '@methane-ui/svelte/MthScheduler.svelte';
</script>
<MthScheduler start-date="2026-01-05" days="7"></MthScheduler>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
resources | — | ReadonlyArray<unknown> | — | Array of resource swimlanes. |
events | — | ReadonlyArray<unknown> | — | Scheduled events mapped onto resource rows and date columns. |
startDate | start-date | string | "2026-01-05" | ISO start date (YYYY-MM-DD) of the visible timeline window. |
days | days | number | 7 | Number of timeline day columns. |
rowHeight | row-height | number | 48 | Estimated height of each resource swimlane in pixels. |
label | label | string | "" | Accessible scheduler grid label. |
Events
| Event | Detail Type | Description |
|---|---|---|
mth-event-select | { event: unknown } | Fired when a scheduled event is activated. |
mth-date-navigate | { date: string } | Fired when keyboard navigation moves the active date. |
APG Keyboard Matrix
| Key | Direction | When | Expected Behavior |
|---|---|---|---|
| ArrowDown | both | resource row focused | moves roving focus to next resource |
| ArrowUp | both | resource row focused | moves roving focus to previous resource |
| ArrowRight | both | timeline focused | advances focused date by 1 day (direction-aware) |
| ArrowLeft | both | timeline focused | moves focused date back by 1 day (direction-aware) |
| Enter | both | scheduled event focused | emits mth-event-select |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="host". | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| keyboard | Implements all 5 APG keyboard transitions across LTR/RTL. | mth-scheduler.spec.test.ts |
| states | Exposes ElementInternals CustomStateSet flags: :state(empty). | Conformance suite |
| i18n | Routes 4 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |