Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It appears as though the <code>fullCalendar</code> plugin requires an array of objects. So if <code>vEvents</code> looks like this:</p> <pre><code>var vEvents = [//this bracket starts an array {//this bracket starts an object title: 'new appointment',//this line defines the `title` property of the object it's in start: '12-OCT-2011 14:00'//this line defines the `start` property of the object it's in },//this ends the current object and the comma separates the two objects as items in an array { title: 'next appointment', start: '12-OCT-2011 15:00' } //note that there is not a comma here, it's important that commas are only between objects and there is no trailing comma at the end of the list of objects ];//this bracket ends the array </code></pre> <p>Then you should be able to just set the <code>events</code> option to the <code>vEvents</code> variable like this:</p> <pre><code>$('#calendar').fullCalendar({ ... //and now on to the event creation events: vEvents }); </code></pre> <p><strong>--UPDATE--</strong></p> <pre><code>//first, create an empty array var myEvents = []; //then iterate through your data for (var rowIx = 0; rowIx &lt; this.Data.Rows.length; rowIx++) { //and add an object, notice the `{` and `}` (brackets) that note the beginning and ending of an object definition myEvents.push({title : this.Data.Rows[rowIx][2].text, start : this.Data.Rows[rowIx][5].text;); } </code></pre> <p><code>.push()</code> adds a value onto the end of an array, so here we <code>.push()</code> an object onto an array. <code>title : this.Data.Rows[rowIx][2].text</code> adds the <code>title</code> property to the new object and maps the value you want to that property.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload