Is there a way to put a custom action in the links...
# avo-2
e
Is there a way to put a custom action in the links in the table row, rather than in a dropdown at the top of the index view?
l
Not right now.
we just released customizable controls on the show page and we want to bring them on the index view too
what would you like to add to the table rows?
this is the PR that brought this on https://github.com/avo-hq/avo/pull/1083
s
Hi! I'm in the process of evaluating this impressive product, and I have the same question as @early-camera-94059 . Is there a way to put custom actions in the table row rather than in a dropdown at the top of the index view? Also, is there a way to have the actions displayed in their respective grid items in the grid view?
l
Hey 👋
so, there isn't a way to natively do that in Avo 2
we're almost done implementing that feature for Avo 3
this is how it will look
you can, however, hack it to have that in Avo 2
* waiting for you to write something
* it looks like you want to say something
if not, I can tell you how you can achieve that
ok. so the way to get custom buttons on rows is through custom fields. You can create a custom field which you'll attach to the resource only on the
:index
view
in that index variant you have access to a view component where you can add any type of merkup you want
there you can add a link that points to an action
s
Hi there! It looks exactly what I mean 👍 . I'm looking to implement a booking system similar to the room booking demo, and I was looking for a way to add a "add to cart" button to a grid item. Looks like this feature's got me covered 😆
l
well...
the grid is a bit different
but...
you could override the grid component altogether in your app and customize it really how you need
and rails will use your version instead of ours
and you could add anything you want
s
Got it! Thanks for your input 👍
l
anytime!
4 Views