diff --git a/concepts/05 UI Components/Scheduler/030 Appointments/060 Customize Appointment Tooltip.md b/concepts/05 UI Components/Scheduler/030 Appointments/060 Customize Appointment Tooltip.md index 7471d2e0e4..997f4d41ab 100644 --- a/concepts/05 UI Components/Scheduler/030 Appointments/060 Customize Appointment Tooltip.md +++ b/concepts/05 UI Components/Scheduler/030 Appointments/060 Customize Appointment Tooltip.md @@ -61,26 +61,29 @@ When a user clicks an appointment, the Scheduler shows a tooltip that can be cus + import { DxSchedulerTypes } from "devextreme-angular/ui/scheduler"; + import { DxButtonTypes } from "devextreme-angular/ui/button"; + export class AppComponent { @ViewChild('targetScheduler', { static: true }) scheduler: DxSchedulerComponent; constructor(private service: Service) {} - onDeleteButtonClick(e: ClickEvent, appointmentData: dxSchedulerAppointment): void { + onDeleteButtonClick(e: DxButtonTypes.ClickEvent, appointmentData: DxSchedulerTypes.Appointment): void { this.scheduler.instance.deleteAppointment(appointmentData); e.event.stopPropagation(); this.scheduler.instance.hideAppointmentTooltip(); } - isDeleteButtonExist({ appointmentData }: { appointmentData: dxSchedulerAppointment}): boolean { + isDeleteButtonExist({ appointmentData }: { appointmentData: DxSchedulerTypes.Appointment }): boolean { const schedulerInstance = this.scheduler.instance; const isAppointmentDisabled = appointmentData.disabled; const isDeleteAllowed = (schedulerInstance.option('editing') && schedulerInstance.option('editing.allowDeleting') === true) @@ -123,16 +126,19 @@ When a user clicks an appointment, the Scheduler shows a tooltip that can be cus + import { DxSchedulerTypes } from "devextreme-angular/ui/scheduler"; + import { DxButtonTypes } from "devextreme-angular/ui/button"; + @Component({ selector: "Tooltip", templateUrl: "./tooltip.component.html" }) export class TooltipComponent { - @Input() appointmentData: dxSchedulerAppointment; + @Input() appointmentData: DxSchedulerTypes.Appointment @Input() markerColor: string; @Input() isDeleteButtonExist: boolean; - @Output() onDeleteButtonClick = new EventEmitter(); + @Output() onDeleteButtonClick = new EventEmitter(); } @NgModule({