F
Filament2y ago
dyo

Disable editRecord in custom view column

I have a link with <a href> in custom view column in filamentphp table component.. How can i prevent edit form to be opened when user click the link i mentioned above?
Solution:
I have a link with <a href> in custom view column in filamentphp table component.. How can i prevent edit form to be opened when user click the link i mentioned above?...
Jump to solution
9 Replies
Iliyas M
Iliyas M2y ago
Why are u using a separate custom view for this. U can achieve this in TextColumn itself.
TextColumn::make('field')->url('your url')
TextColumn::make('field')->url('your url')
dyo
dyoOP2y ago
i want to fetch data from api in that spesific column in client side
dyo
dyoOP2y ago
the main text and the url is seperated
Dennis Koch
Dennis Koch2y ago
Disable the default action via getTableRecordAction() and getTableRecordUrl() on the ListPage
dyo
dyoOP2y ago
i still want to use the getTableRecordAction to 'edit' on other column, i just want to exclude it in custom column,, is it possible?
Dennis Koch
Dennis Koch2y ago
You could try to apply pointer-events none css
dyo
dyoOP2y ago
i tried this, but the custom link is not working and the edit form is showing when user click the column or the link, opposite to my intention.
Patrick Boivin
Try ->disableClick() on the ViewColumn
dyo
dyoOP2y ago
that's what i need.. thanks..

Did you find this page helpful?