eventResizableFromStart
Lets a person resize an event from its start, not only its end.
| Type | boolean |
|---|---|
| Default | false |
Live update (update()) | Yes |
| Declared in | packages/dom/src/settings.ts |
What it does
Section titled “What it does”Without this option an event — timed or all-day — resizes from its end only; with it, from its start too: an appointment begun earlier by pulling its top, a conference bar in a month stretched back a day. On the keyboard, Alt+Shift+arrows pull the start of a held event.
Example
Section titled “Example”import { createCalendar } from '@dzcalendar/dom';
createCalendar(element, { timeZone: 'Europe/Paris', editable: true, eventResizableFromStart: true });import { Component } from '@angular/core';import { DZ_CALENDAR } from '@dzcalendar/angular';
@Component({ selector: 'app-agenda', imports: [DZ_CALENDAR], template: `<dz-calendar timeZone="Europe/Paris" [editable]="true" [options]="{ eventResizableFromStart: true }" />`,})export class Agenda {}import { DzCalendar } from '@dzcalendar/react';
export function Agenda() { return <DzCalendar timeZone="Europe/Paris" editable eventResizableFromStart />;}<script setup lang="ts">import { DzCalendar } from '@dzcalendar/vue';</script>
<template> <DzCalendar time-zone="Europe/Paris" editable :options="{ eventResizableFromStart: true }" /></template>In Angular and Vue it goes in options; in React it is a prop.
Live demo
Section titled “Live demo”Pull an event’s top or its bottom.
See also
Section titled “See also”editable— what may change.snapMinutes— the step a resize snaps to.rules— limits on where it may go.