PHP code example of cosyphp / row-table

1. Go to this page and download the library: Download cosyphp/row-table 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/ */

    

cosyphp / row-table example snippets


protected function form()
{
    $form = new Form();

    $tableRow = new TableRow();
    $tableRow->select('图表类型')->options(['按年显示', '按月显示', '按天显示'])->default(1);
    $tableRow->date('日期')->default(date('Y-m-d'));
    $tableRow->button('搜索')->attribute('id', 'search-btn')->setElementClass('btn-primary');

    $form->rowtable('搜索')->setRows($tableRow)->useDiv(true);
    $form->disableSubmit();
    $form->disableReset();

    return $form;
}

php artisan vendor:publish --tag=row-table --force
json
"scripts": {
    "post-update-cmd": "php artisan vendor:publish --tag=row-table --force",
}