PHP code example of himiklab / yii2-handsontable-widget

1. Go to this page and download the library: Download himiklab/yii2-handsontable-widget 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/ */

    

himiklab / yii2-handsontable-widget example snippets


use himiklab\handsontable\HandsontableWidget;

<?= HandsontableWidget::widget([
    'settings' => [
        'data' => [
            ['A1', 'B1', 'C1'],
            ['A2', 'B2', 'C2'],
        ],
        'colHeaders' => true,
        'rowHeaders' => true,
    ]
]) 

use himiklab\handsontable\HandsontableWidget;

<?= HandsontableWidget::widget([
    'requestUrl' => 'hts',
    'isRemoteChange' => true,
]); 

use app\models\Page;
use himiklab\handsontable\actions\HandsontableActiveAction;

public function actions()
{
    return [
        'hts' => [
            'class' => HandsontableActiveAction::className(),
            'model' => Page::className(),
            'isChangeable' => true,
        ],
    ];
}

php composer.phar