We using the version of angular on ionic 3.
Is it possible to allow the "celldblclick" function on specific cell?
currently, click on each cell (even in the events area).
My need - click on the resource name to get the resource full information (location, ID number etc..)
I use the "celldblclick" function as you publish in the "task" example.
dispatchEvent(event: any) {
switch (event.type) {
case 'celldblclick':
this.showResourceDetails(event);
break;
default:
return;
}
}
showResourceDetails({ record }) {
const resourceDetails: Resource = record.data;
const params = {
'resourceDetails': resourceDetails
}
this.bksModalService.show(BksFSResourceDetailsComponent, params,
{ enableBackdropDismiss: true, cssClass: "bks-modal-fixed-height" });
}
<scheduler #scheduler [events]="events" [resources]="resources" [startDate]="startDate" [columns]="schedulerConfig.column"
[timeRanges]="schedulerConfig.timeRanges" [nonWorkingTime]="schedulerConfig.nonWorkingTime" [group]="schedulerConfig.groupBy" [viewPreset]="schedulerConfig.zoomViewPreset" [sort]="schedulerConfig.sort"
(onSchedulerEvents) = "dispatchEvent($event)"
>
</scheduler>