Mixins / foldkit-mixins-ui
CalendarSlots
const · packages/mixins-ui/src/calendar.ts:27
const CalendarSlots: Slots.Contract<{ readonly root: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>]>, readonly Slot.EventName[], readonly Slot.AttributeName[], readonly Slot.RequirementName[], boolean>; readonly header: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>]>, readonly Slot.EventName[], readonly Slot.AttributeName[], readonly Slot.RequirementName[], boolean>; readonly previousMonthButton: Slot.UnnamedSlot<Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>, readonly [Event.EventToken<"click">], readonly [Attr.AttrToken<"role">, Attr.AttrToken<"disabled">, Attr.AttrToken<"aria-disabled">], readonly Slot.RequirementName[], boolean>; readonly nextMonthButton: Slot.UnnamedSlot<Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>, readonly [Event.EventToken<"click">], readonly [Attr.AttrToken<"role">, Attr.AttrToken<"disabled">, Attr.AttrToken<"aria-disabled">], readonly Slot.RequirementName[], boolean>; readonly headingButton: Slot.UnnamedSlot<Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>, readonly [Event.EventToken<"click">], readonly [Attr.AttrToken<"role">], readonly Slot.RequirementName[], boolean>; readonly previousPageButton: Slot.UnnamedSlot<Capabilit …;Calendar is a nested Submodel whose shape depends on model.viewMode. The
top-level groups (root, grid, the navigation buttons) and per-item groups
(columnHeaders[], weeks[].attributes, the day/month/year cells and their
buttons) are each resolved with SlotView.buildersFor, so a contribution to
a cell slot applies to every cell while each cell's base keeps its own event
ownership (a disabled day omits OnClick). header, the row of the
heading and its paging buttons, has no upstream bundle: it is this package's,
so the default drawing puts no markup outside a slot.
In the guides
- Stateless vocabularyMixins / foldkit-mixins-ui
- RecipesMixins / foldkit-mixins-ui