-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load FullDefinition image on demand #161
Comments
Sure. If you check on the documentation website (features - modal gallery) you could find the full definition of Image class. If you have other questions or problems feel free to ask. |
Hi, thanks for your answer (and your component :) ) when my componenet is loaded, i take from the server juste the thumbnail image as base64string and i put in the modal path so my users can see the gallery as soon as the component is loaded. then,in a synchronous task witch is triggered when the user click on the gallerry to open it in modal, i take the "fulldef" base64 string from the server and make an update of the modal path with this new base64 string and plain path with the thumbnail base64 string. the reason i'm doing it this way is to limit the bandwidth used by the customer because they mostely use the app on their phones The problem i'm facing of is: An other way would be to intercept the "onClick" of the gallery to get the image from the server and then, when my asynchronous task as ended, show the gallery but i don't know if there is a way to do this. Thanks again for your time. Regards, |
If you read the documentation you will see that there are also output events. Also, there are many demos to see all features. What you are asking is a very specif use case. In fact, you want to load dynamically a base64 forcing it externally updating the image array. However, why are you using base64? I suggest to load thumbs with base64, but add real img ad modal. In this way they were loaded asynchronously only when requested (also with a configurable spinner) |
the images are stored in database as base64 string because they are image uploaded by the users. As i can see in your samples, you put relative path like '../assets/images/...' or base64 string but no url. Do you know if there is any way for my server to generate un url from a base64 string? thanks again |
I'm adding urls in this way because my images are stored locally. However you could add also external paths, but I suggest to use local images to be able to use download features. I never tried to use base 64 from url. |
I'ts me again, |
You should create a pull request on github following the official tutorial of how to create a pull request |
ok, in witch branche should i make the pullrequest? |
Develop |
I'll port your fix to the next major release by myself |
ok, thanks |
Ok I merged the pull request applying some fixes and improvements into develop branch |
I'm submitting a...
Current behavior
Is there any way to first load only thumnail image and when i click on it, make a request to my server to get the full def of the corresponding image?
What is the motivation / use case for changing the behavior?
We plan to use the gallery on webapp witch is used on phone, so due to network speed, we try to get as less data as we can.
Environment (the most important section to fill very carefully)
The text was updated successfully, but these errors were encountered: