Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

view_form - add a attribute to an img field on each line of view_form

23 views
Skip to first unread message

Ari Sobel

unread,
Apr 17, 2024, 11:55:12 AM4/17/24
to Jam.py Users Mailing List, Andrew Yushev
Hi, to all

I want to add 
an attribute to a img field on each line of view_form

function on_view_form_created(item) {
 
   //Perhaps here
       
}

Trying to add a attribute called data-zoom-image inorder to implement  elevateZoom lib.

is a way to do it?

Dean D. Babic

unread,
Apr 17, 2024, 8:00:48 PM4/17/24
to Jam.py Users Mailing List
Hi Ari, 
would that require two images? Ie:

If so, I think this is a problem, since there is no way to have two images uploaded, one with smaller resolution and one with high,
in two different folders....

Drazen Babic

unread,
Apr 18, 2024, 10:43:06 PM4/18/24
to Ari Sobel, Jam.py Users Mailing List
Nice solution!
Thanks for reporting back!

On Fri, Apr 19, 2024 at 4:38 AM Ari Sobel <arieh...@gmail.com> wrote:
Hi Dean,

It wasn't  necessary to have it different folders. Doen matters the source of the image. But at the end, I used another lib:


as below:

It Worked for me

Thanks


--
You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jam-py/ab43deeb-5178-44fc-898f-d916187b91f8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages