Trying to add more fields into an event popup

Hello,

I'm using Angular 11 and Schedule component, I'm trying to add more information into the popup box of an event.

Something like this : 
All the fields are of course included in my dataSource.

I have see your popupOpen documentation and I don't know how this works without real example.

Thanks for your help, regards

3 Replies

PN Praveenkumar Narasimhanaidu Syncfusion Team March 24, 2021 12:54 PM UTC

Hi Guillaume, 

Greetings from Syncfusion support..! 

We have validated your requirement “add more fields into an event popup” and prepared sample based on your requirement using scheduler popupOpen event. Sample can be viewed from the following link. 


App.component.ts 
onPopupOpen(args) { 
    if (args.type === "QuickInfo") { 
      if ( 
        !args.element.querySelector(".status-row") && 
        args.target.classList.contains("e-appointment") 
      ) { 
        let row: HTMLElement = createElement("div", { 
          className: "status-row", 
          styles: "padding-top: 16px;font-size: 14px; display: flex", 
          innerHTML: 
            "<span class='e-icons e-status'></span><span class='e-status-text'>" + 
            args.data.Status + 
            "</span>" 
        }); 
        let contentElement: HTMLElement = <HTMLElement>( 
          args.element.querySelector(".e-popup-content") 
        ); 
        contentElement.append(row); 
      } 
    } 

Also you can use quick info template to customize the quick popup window, please refer to the following UG and SB. 
 

Kindly try the above solution and get back to us if you need any further assistance. 

Regards, 
Praveenkumar. 



GU Guillaume March 24, 2021 02:59 PM UTC

Great, that's exactly what I was looking for. Thanks a lot.

Best regards, Guillaume


NR Nevitha Ravi Syncfusion Team March 25, 2021 04:15 AM UTC

Hi Guillaume, 

You are most welcome..! please get back to us if you need any further assistance. 

Regards, 
Nevitha 


Loader.
Up arrow icon