AddCardLink: refine onclick
Is your feature request related to a problem? Please describe.
-When AddCardLink is supplied as a custom component there is no way to supply onclick callback function, lets say if I want to show modals when it is pressed.
-If i just add onclick method on the custom component and dispatch some action using redux. the dispatch function of does'nt pick up my app store instead reac-trello's store.. so things get a little complex
Describe the solution you'd like A way to supply onclick callback function for AddCardLink.
Hi @jordanos,
Do you know how to add link on title or somewhere else?
Best,
Marko
Hey @MarkoKurtovic .
Can you elaborate the question? Where do you wanna add the link.. is it on card titles?
Thanks for answering @jordanos
Yes, i just need simple redirect link on title.
Best,
Marko Kurtovic
okay @MarkoKurtovic
You can get that by creating a custom card component where you'll add a redirect link by wrapping the <CardTitle/>, Then supplying it as a prop like this:
const components = { Card: CustomCard, }; <Board components={components} />
You can create a custom card component using this format.
I've done the same stuff when I needed to customize the card for my use here check it out it might help you.