PHP code example of panix / wgt-jstree

1. Go to this page and download the library: Download panix/wgt-jstree 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/ */

    

panix / wgt-jstree example snippets


<?= \panix\ext\jstree\JsTree::widget([
    'attribute' => 'attribute_name',
    'model' => $model,
    'core' => [
        'data' => $data
        //...
    ],
    'plugins' => ['types', 'dnd', 'contextmenu', 'wholerow', 'state'],
    //...
]); 

<?= \panix\ext\jstree\JsTree::widget([
    'core' => [
        'data' => $data
        //...
    ],
    'plugins' => ['types', 'dnd', 'contextmenu', 'wholerow', 'state'],
    //...
]); 

php composer