Like what we’re doing? Star us on GitHub!

Cell component with first column "WrapElement" link

febba
3 weeks ago
2

Hello,


I created a cell component link in the doc (

https://payloadcms.com/docs/admin/components#cell-component

)


When the cell is in the first position the "WrapElement" (

https://github.com/payloadcms/payload/blob/master/src/admin/components/views/collections/List/Cell/index.tsx

) with the link to the document is not added.


Is this a bug or is there something to be implemented?



Thank you

  • Jarrod
    Payload Team
    3 weeks ago

    You will need to implement your own wrap element component. You have everything you need to do that since the link prop is passed to your custom component. You are looking at the default cell component in that file, but you are rendering a custom cell component

  • febba
    3 weeks ago

    Ok thank you

Open the post
Continue the discussion in Discord
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More