Event Timeline - Preferences
Customize timeline preferences including the time format.
Initialize the preferences
Use the defaultPreferences prop to initialize the preferences:
const defaultPreferences = {
ampm: false,
}
<EventTimelinePremium defaultPreferences={defaultPreferences} />;
Available properties:
ampm: Whether the component displays time in 12-hour format with AM/PM. Defaults to the hour cycle of the date locale.weekStartsOn: The first day of the week, as an ISO weekday, from1(Monday) to7(Sunday). Defaults to the first day of the week of the date locale.
API
See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.