PHP code example of philippfrenzel / yii2visjs

1. Go to this page and download the library: Download philippfrenzel/yii2visjs library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

philippfrenzel / yii2visjs example snippets


  
  <?= \yii2visjs\yii2visjs::widget([
      'clientOptions' => [
        'editable' => false
      ],
      'dataSet' => [
        [
          'id' => 1,
          'start' => '2015-05-13T14:00:00',
          'end'=> '2015-05-14T01:00:00',
          'content' => 'Test A',
          'type' => 'range'
        ],
        [
          'id' => 2,
          'start' => '2015-05-15T15:00:00',
          'end'=> '2015-05-16T02:00:00',
          'content' => 'Test B',
          'type' => 'box'
        ]
      ],
    ]); 

TBD