In a data record, is it possible to add html code in the subject ?

In a data record, is it possible to add html code in the subject ?

 

{

   Id: 1,

    Subject: '<a target="_blank" rel='nofollow' href="http://www.buzzee.fr">mon client</a>',

    StartTime: new Date(2018, 1, 15, 10, 0),

    EndTime: new Date(2018, 1, 15, 12, 30),

},


3 Replies 1 reply marked as answer

HB Hareesh Balasubramanian Syncfusion Team November 26, 2020 01:37 PM UTC

Hi Gilles, 

Greetings form Syncfusion Support..! 

Yes, it is possible to add html codes in the Subject filed. 

We have prepared a sample based on your shared code snippets using “HTML codes for the Subject filed” which can be viewed from the following link. 


var scheduleObj = new ej.schedule.Schedule({ 
  height: "650px", 
  selectedDate: new Date(2018, 1, 15), 
  eventSettings: { 
    dataSource: [ 
      { 
        Id: 1, 
        Subject: 
          "<a target='_blank' rel='nofollow' rel='nofollow' href='http://www.buzzee.fr'>mon client</a>", 
        StartTime: new Date(2018, 1, 15, 10, 0), 
        EndTime: new Date(2018, 1, 15, 12, 30) 
      } 
    ] 
  } 
}); 
scheduleObj.appendTo("#Schedule"); 

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

GI Gilles November 26, 2020 02:18 PM UTC

Thanks Hareesh, it works !


NR Nevitha Ravi Syncfusion Team November 27, 2020 04:05 AM UTC

Hi Gilles,  

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

Regards, 
Nevitha 


Loader.
Up arrow icon