Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a line break in JavaScript (full calendar)

This is from Adam Shaw's FullCalendar...

How can I put a line break in here so that line two moves to the next line?

events: [
    {
    title: 'Line 1 - This is line 2...',
    start: '2013-11-07'
},

I tried adding one of these, +'<br />', but it didn't work...

Thoughts?

like image 918
Millhorn Avatar asked Oct 21 '25 05:10

Millhorn


1 Answers

Like I already said in my answer above: adding a \n does the trick!

see: http://jsbin.com/IZoCoJIy/1/

like image 128
sjkm Avatar answered Oct 23 '25 21:10

sjkm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!