How to show relation list in field on datatables #280
Replies: 2 comments 2 replies
-
@rickyviz sorry I don't think I fully understood your question. But I think you are looking for some select column ? [ // select_multiple: n-n relationship (with pivot table)
'label' => 'Select_multiple', // Table column heading
'type' => 'select_multiple',
'name' => 'tags', // the method that defines the relationship in your Model
'entity' => 'tags', // the method that defines the relationship in your Model
'attribute' => 'name', // foreign key attribute that is shown to user
'model' => "Backpack\NewsCRUD\app\Models\Tag", // foreign key model
'wrapper' => [
'href' => function ($crud, $column, $entry, $related_key) {
return backpack_url('tag/'.$related_key.'/show');
},
],
], Checkout full docs: https://backpackforlaravel.com/docs/4.1/crud-columns#default-column-types-1 Let me know, |
Beta Was this translation helpful? Give feedback.
2 replies
-
I'm closing this issue due to inactivity. If you need further assistance or have additional questions, feel free to reopen this issue or create a new one. We're here to help! Cheers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
like on that image data showing of relation on field list, how to make it in backpack
Beta Was this translation helpful? Give feedback.
All reactions