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

17 views
Skip to first unread message

Ari Sobel

unread,
Apr 17, 2024, 11:55:12 AMApr 17
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 PMApr 17
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 PMApr 18
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