1. Go to this page and download the library: Download outl1ne/nova-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/ */
outl1ne / nova-table-field example snippets
use Outl1ne\NovaTableField\Table;
public function fields(Request $request)
{
return [
Table::make('Countries')
// Optional:
->disableAdding() // Disable adding new rows and columns
->disableDeleting() // Disable deleting rows and columns
->minRows(1) // The minimum number of rows in the table
->maxRows(10) // The maximum number of rows in the table
->minColumns(1) // The minimum number of columns in the table
->maxColumns(10) // The maximum number of columns in the table
->defaultValues([ // Default values for new rows
['column_1', 'column_2'], // This is a row
['column_3', 'column_4'], // This is a row
])
];
}