List Operation #599
-
Hello Guys, I have a question, in the list operation I tried to create the new column as in the image below, and I also disabled the responsive table. CRUD::disableResponsiveTable(); here is my project version: PHP VERSION:PHP 8.1.16 (cli) (built: Feb 14 2023 18:34:53) (NTS) LARAVEL VERSION:v9.52.12 BACKPACK PACKAGE VERSIONS:backpack/crud: 5.6.1 the first is to show the wrong of the row. Appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi @cheadevit Can you please provide us with what you do inside your setupListController and what actually you want to achieve? is it show ID from 1 to n? or what? Thank you mate. |
Beta Was this translation helpful? Give feedback.
-
I have a book model, and inside that model, I have bookLocation method that defines my one to many, so my book can be placed in several locations, then I use select column type and backpack already do other stuff for me, so if that's what you want to achieve, to show, something like that, try this code $this->crud->addColumn([
'label' => 'Person in Charge',
'type' => 'select',
'name' => 'EmpInCharges',
'entity' => 'EmpInCharges',
'attribute' => 'employee.emp_full_name',
'wrapper' => [
'class' => 'ml-3',
]
]); |
Beta Was this translation helpful? Give feedback.
Oky, can you please show us when you don't use CRUD::disableResponsiveTable();?