PHP code example of alizada / nova-gridder
1. Go to this page and download the library: Download alizada/nova-gridder 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/ */
alizada / nova-gridder example snippets
...
class YourResource extends Resource {
...
public function fields(Request $request)
{
return [
...
// Are you ready?
// --------------
// 1. Use gridder method
// 2. Set options for rendering
// 3. See the results
Field::make(__('Column'), 'column') // Use whatever Field
->gridder([
'labelSize' => 'w-full',
'contentSize' => 'w-full',
'panelSize' => 'w-1/5', // Use field as box in a Panel
'additionalLabelClasses' => 'text-center',
'additionalContentClasses' => 'text-center py-2',
'additionalPanelClasses' => '', // This remove the border-bottom per field
])
];
}