PDA

View Full Version : pics in grid --> spotlight preview



nibblas
23 Feb 2011, 7:46 AM
hy all,

i have a grid which shows some data and a pic (thumbnails) per row.

what i like to do is following:
if a user clicks on the thumbnail, the big picture is shown in a spotlight...

ist there already a solution or some sample code for that?

cheers & thx in advance

nibblas

Condor
24 Feb 2011, 8:19 AM
Ext Core contain a spotlight example that you could use or you could simply use an Ext.Window to show the image.

Write a rowclick event handler for the grid and check if the target is an <img>. If it is you open up the spotlight with a new image with the same src.