Const
AnalogClock component - A draggable analog clock face for time selection
m(AnalogClock, { hours: 10, minutes: 30, amOrPm: 'AM', currentView: 'hours', twelveHour: true, onTimeChange: (hours, minutes) => { console.log(`Time changed to ${hours}:${minutes}`); }, onViewChange: (view) => { console.log(`View changed to ${view}`); }}) Copy
m(AnalogClock, { hours: 10, minutes: 30, amOrPm: 'AM', currentView: 'hours', twelveHour: true, onTimeChange: (hours, minutes) => { console.log(`Time changed to ${hours}:${minutes}`); }, onViewChange: (view) => { console.log(`View changed to ${view}`); }})
AnalogClock component - A draggable analog clock face for time selection