new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Mantine · all subjects

schedule/drag-drop

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Schedule drag and drop events

Enable event drag and drop by setting withEventsDragAndDrop prop. Events can be dragged to different time slots and days across all views.

Schedule drag slot select for event creation

Set withDragSlotSelect prop to allow users to drag across time slots or day cells to select a range. When the drag ends, the onSlotDragEnd callback is called with the range start and end dates. Combined with onTimeSlotClick, onAllDaySlotClick, onDayClick, and onEventClick callbacks, this enables a complete event creation and editing experience across all views.

Schedule external drag and drop

Use onExternalEventDrop to allow dragging items from outside the component into the schedule. External items must set data in dataTransfer during their onDragStart. The callback receives the DataTransfer object and the drop target datetime.

Schedule bidirectional drag and drop implementation

Combine onExternalEventDrop with withEventsDragAndDrop to enable bidirectional drag and drop. Items dragged from the sidebar are removed from the list and added to the schedule. Events dragged from the schedule back to the sidebar are removed from the schedule. The schedule sets 'application/json' with { eventId } in dataTransfer when an event is dragged, which the sidebar drop zone reads to identify the event.

Give your agent this brain