F
Filament16mo 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 M16mo 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
dyoOP16mo ago
i want to fetch data from api in that spesific column in client side
dyo
dyoOP16mo ago
the main text and the url is seperated
Dennis Koch
Dennis Koch16mo ago
Disable the default action via getTableRecordAction() and getTableRecordUrl() on the ListPage
dyo
dyoOP16mo 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 Koch16mo ago
You could try to apply pointer-events none css
dyo
dyoOP16mo 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
Patrick Boivin16mo ago
Try ->disableClick() on the ViewColumn
dyo
dyoOP16mo ago
that's what i need.. thanks..
Want results from more Discord servers?
Add your server