Custom data in full Legend jquery

Asked

Viewed 115 times

0

I need to upload custom data to full calendar jquery, such as the id of that event.

I tried to do so:

title: '{{$reuniao->TXT_TEMAX_REUNI}}',
start: '{{$reuniao->getStart}}',
allDay: true,
id: '{{$reuniao->COD_IDENT_REUNI}}'
className: 'bgm-cyan'

To plot in the calendar but it does not. I need to do this so when click I can send to the meeting due page.

  • $reuniao comes from php?

  • You know, man, this is a horrible way to pick constants (or variables) out of a class. Build a method.

  • yes is PHP, and using Laravel, the error is not in the title, it is in id

  • discovered my mistake :\

  • The id line lacks a ',' at the end, thus causing the error :D

1 answer

0

I found my mistake, I was at the end of the id missing one , then the resolution was:

title: '{{$reuniao->TXT_TEMAX_REUNI}}',
start: '{{$reuniao->getStart}}',
allDay: true,
id: '{{$reuniao->COD_IDENT_REUNI}}',
className: 'bgm-cyan'
  • 1

    Forgot to add the comma at the end of the line again =)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.