Appointment
A timeline appointment block that represents one scheduled item within a calendar or timeline view.
import { Appointment } from "@schukai/monster/source/components/time/timeline/appointment.mjs";Introduction
The Monster Appointment component is the single-item building block inside a timeline or calendar context. Use it when one concrete scheduled item should be rendered as part of a larger planning view.
When to use Appointment
- Use it for individual scheduled entries: Meetings, tasks or reserved slots are common cases.
- Use it when timeline structure already exists: The component is designed as one part of a larger schedule.
- Do not use it as a standalone event system: Rich scheduling usually needs surrounding timeline or calendar layout.
Appointment Simple
This example shows a single timeline appointment entry with a custom text label.
Javascript
/** this example does not use an extra script **/HTML
<div style="display:grid;gap:var(--monster-space-2);">
<monster-appointment data-monster-option-labels-text="Design review · 10:30"></monster-appointment>
<monster-appointment data-monster-option-labels-text="Launch checklist · 13:00"></monster-appointment>
<monster-appointment data-monster-option-labels-text="Retrospective · 16:30"></monster-appointment>
</div>Stylesheet
/** no additional stylesheet is defined **/Component Design
The appointment component is intentionally lightweight. It renders a control wrapper and an appointment part that displays the configured label text.
Styling Hooks
::part(control): Styles the outer appointment wrapper.::part(appointment): Styles the visible label area.
HTML Structure
<monster-appointment></monster-appointment>JavaScript Initialization
const element = document.createElement('monster-appointment');
document.body.appendChild(element);Exported
AppointmentDerived from
CustomElementOptions
The Options listed in this section are defined directly within the class. This class is derived from several parent classes, including the CustomElement class. Therefore, it inherits Options from these parent classes. If you cannot find a specific Options in this list, we recommend consulting the documentation of the CustomElement.
- since
- deprecated
Properties and Attributes
The Properties and Attributes listed in this section are defined directly within the class. This class is derived from several parent classes, including the CustomElement class and ultimately from HTMLElement. Therefore, it inherits Properties and Attributes from these parent classes. If you cannot find a specific Properties and Attributes in this list, we recommend consulting the documentation of the CustomElement.
data-monster-options: Sets the configuration options for the collapse component when used as an HTML attribute.data-monster-option-[name]: Sets the value of the configuration option[name]for the collapse component when used as an HTML attribute.
Methods
The methods listed in this section are defined directly within the class. This class is derived from several parent classes, including the CustomElement class and ultimately from HTMLElement. Therefore, it inherits methods from these parent classes. If you cannot find a specific method in this list, we recommend consulting the documentation of the CustomElement.
Static methods
[instanceSymbol]()instanceof operator.getCSSStyleSheet()- {CSSStyleSheet[]}
getTag()- {string}
Lifecycle methods
Lifecycle methods are called by the environment and are usually not intended to be called directly.
[assembleMethodSymbol]()- {Components.Time.Calendar
Events
This component does not fire any public events. It may fire events that are inherited from its parent classes.