https://avo.cool logo
Hey guys,@Adrian M @Paul Bob ! I hope you all a...
# avo-2
l
Hey guys,@lemon-wall-20836 @loud-jewelry-99127 ! I hope you all are doing good. I have a question: Is it possible to make the entire row clickable on the index view? For example, if I click anywhere on a row representing a record, can I be redirected to the edit view of that specific record? Similar to using link_to_record: true for a specific field, how can I achieve this functionality for the entire row? Does Avo have any built-in method for this integration?
m
Thread automatically created by ROR-Dev in #740893011994738751
l
Hey @late-leather-46322 there is no such a feature, inside each row can be several links and making the whole row a link is not that straight forward
You can try overriding the component and try your own implementation
l
let's take them one at a time 🙂
- clickable rows are not possible natively in HTML. there are some hacks around it but we haven't seen anything that could work for us. we can have another look if you can point us into the right direction
- Skip show view is what you're looking for (https://docs.avohq.io/3.0/customization.html#skip-show-view)
the docs are a great place you can find a lot of help. I recommend you give it a full read at some point. at least skim through it
l
For instance, in Shopify, upon creating a record, clicking anywhere within the record's column on the index view redirects the user to the record's edit page. I'm asking for somethiing like this.
l
I checked what Shopify is doing, and that's a JS solution
we're not big fans of that
that's a bit hacky, could produce side-effects, and it's not accesible
you're free to add that yourself using the JS integration
it shouldn't be very difficult TBH
l
Ahn! Alright.
l
keep an eye on this issue https://github.com/avo-hq/avo/pull/2825
I don't have the time to fix and add new tests right now, so if you want to help and move this throught he finish line, we'd appreciate some help
l
Yeah, sure!