Hello all senior web developers, I am newbie for web development. I have used lightGallery plugin to view images. But my image path stored in array. In array element always dynamic that get from ajax response. This is My array :
var data = { "result" : [
{ "file_name" : "a.jpg" },
{ "file_name" : "b.png"},
......................
]
}
// This is Lightgallery array syntax
$(this).lightGallery({
dynamic: true,
dynamicEl: [{"src": 'your image path'},
{'src': 'your image path'},
........................
]
})
// I want like this :
$(this).lightGallery({
dynamic: true,
dynamicEl: [{"src": 'a.jpg'},
{'src': 'b.jpg'},
................
]
})
How to do that? Can or not?
thank for valuable help.