PHP code example of ayctor / table-field

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

    

ayctor / table-field example snippets


use Ayctor\TableField\Table;

return [
    Table::make('Table', 'table')
        ->stacked()
        ->rows(4)
        ->columns(4)
        ->headers([
            'Lorem ipsum',
            'Lorem ipsum',
            'Lorem ipsum',
        ])
        ->addRowButtonLabel('Add')
        ->addColumnButtonLabel('Add')
        ->removeRowButtonLabel('Remove')
        ->removeColumnButtonLabel('Remove'),
    ];