novelys / titanium-picture-gallery

Pure javascript picture gallery for Appcelerator Titanium
Other
92 stars 37 forks source link

Dynamically Assign Images #6

Open apurvag opened 12 years ago

apurvag commented 12 years ago

I couldnt find a way to dynamically assign images to the picture gallery. Currently it seems the images property can be set only when creating the picture gallery window. But there is no way one can assign the images dynamically after the window has been created.

ephread commented 12 years ago

Unfortunately, dynamically assign images to the gallery wasn't something I had in mind when I first designed it, and it would require rewriting large chunks of the library. Unless someone helps me rewrite half the code, I don't think this feature is coming any time soon.

What did you need this for? Maybe we can find an another way around the problem.

apurvag commented 12 years ago

Basically I am creating a gallery in the app that will pull down latest pics from a group on Flickr. I will therefore need to refresh the images as the new ones come in.

ephread commented 12 years ago

Okay, I see what you mean. I can't think of a way to make this work with the current gallery. But, if you're willing to dig a bit into the code, I'll be more than happy to help you implement this feature.

misbach commented 12 years ago

Great library, thanks. However, I've got this same problem. I need the ability to add images to the gallery after it's rendered.

jayhuang75 commented 12 years ago

I think you you have to do is make a function out side this and then add refresh button in gallary picture like thumbgallarywindow and then call the function to re-getting the photo when click the refresh button, hope this help your guys