View as Markdown

API reference: @salmonui/calendars/date-picker

TimeOptionContextinterface

import type { TimeOptionContext } from '@salmonui/calendars/date-picker';

Also exported from @salmonui/calendars/time-picker.

interface TimeOptionContext {
    readonly time: PlainTime;
    readonly text: string;
    readonly selected: boolean;
    readonly disabled: boolean;
    readonly index: number;
}

Context of renderOption.

TimeOptionContext members (5)
NameSignatureDescription
timereadonly time: PlainTime;
textreadonly text: string;

The formatted option text.

selectedreadonly selected: boolean;
disabledreadonly disabled: boolean;
indexreadonly index: number;