Closed gianmarxWebmapp closed 3 years ago
@gianmarxWebmapp You can only use viewLink method on Row
OK but what if you want to put a label on it?
return (new \Mako\CustomTableCard\Table\Row(
new \Mako\CustomTableCard\Table\Cell($order['name']),
new \Mako\CustomTableCard\Table\Cell($order['description']),
new \Mako\CustomTableCard\Table\Cell($order['created_at']),
new \Mako\CustomTableCard\Table\Cell($order['updated_at']),
))->viewall(['label' => 'View All', 'link' => '/nova/resources/track-layers']);
so i see it doesn't work. Thanks
@gianmarxWebmapp
viewAll method will show button at the bottom of the table to navigate to resources on example. Used on CustomTableCard instance
viewLink will add eye icon to end of every row where viewLink is set. Used on Row instance
in my case I should put a button with a string like "view", I was wondering if it was possible instead of the icon. How could I do it? thanks
No, it is not possible right now.
You can do PR to add functionality you need.
how can i add this functionality ?
You need to make new branch, make updates, test and make pull request.
Closing.
I would like to insert a button on each line but every time I try to insert a view link after update it gives me an error!
How can I insert a button after update? because if I put for example -> viewLink ('/ resources / orders / 1') it gives me an error:
Error Call to undefined method Mako\CustomTableCard\Table\Cell::viewLink()