- Home
- Forum
- Angular - EJ 2
- Customize Quick menu buttons
Customize Quick menu buttons
Good Morning. I would like to know how to insert a new button next to the "edit" and "delete" that comes by default. I would like to insert one more "report" button.Attached example
Thanks in advance.
Attachment: customFunc_54a095b7.rar
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
HB
Hareesh Balasubramanian
Syncfusion Team
December 17, 2020 03:07 PM UTC
Hi Felipe,
Greetings form Syncfusion Support..!
We have prepared a sample for your requirement “customize the quick info buttons” using quickInfoTemplates property of the Scheduler, which can be viewed from the following link.
UG link: https://ej2.syncfusion.com/angular/documentation/schedule/editor-template/#customizing-quick-popups
|
<ng-template #quickInfoTemplatesHeader let-data>
<div *ngIf="data.elementType == 'cell' || data.elementType == 'event'">
<div class="e-popup-header">
<div class="e-header-icon-wrapper">
<div *ngIf="data.elementType == 'event'" class="subject">
{{data.Subject}}
</div>
<button
class="fa fa-question-circle"
title="customIcon"
(click)="onCustomClick($event)"
></button>
<button
class="e-close e-close-icon e-icons"
title="Close"
(click)="onCloseClick($event)"
></button>
</div>
</div>
</div>
</ng-template> |
Kindly try the above solution and get back to us if you need any further assistance.
We will happy to assist you.
Regards,
Hareesh
Marked as answer
ST
Swati Thorali
November 17, 2022 07:30 AM UTC
Hi, I am trying to implement the same but having error for which I have attached the error screenshot above,
Please
SR
Swathi Ravi
Syncfusion Team
November 18, 2022 01:49 PM UTC
Swati, You can resolve the error by giving args to the respective function as shown in below snippet.
Sample : https://stackblitz.com/edit/angular-quick-popup-customized-sample-cvkxcj?file=app.component.ts
[app.component.ts]
public onCloseClick(args): void { this.scheduleObj.quickPopup.quickPopupHide(); } public onCustomClick(args): void { alert("customized icon triggered"); } |
SIGN IN To post a reply.
- 3 Replies
- 4 Participants
- Marked answer
-
FE felipe
- Dec 16, 2020 01:42 PM UTC
- Nov 18, 2022 01:49 PM UTC