Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Adding event hooks #29

Open
ADavidLiu opened this issue Sep 8, 2019 · 11 comments
Open

Adding event hooks #29

ADavidLiu opened this issue Sep 8, 2019 · 11 comments

Comments

@ADavidLiu
Copy link

Great plugin!

Is there any way I can execute custom code when the plugin finishes loading the posts (like onEnd or something similar)?

@jsanahuja
Copy link
Owner

There is no way yet, I might implement it in a future release

@terryapodaca
Copy link

This would be a very good enhancement, as I would like to implement a slider/carousel plugin but I can't get the plugin to fire "after" yours...so this would be great!

@jsanahuja
Copy link
Owner

A pull request implementing this will be welcome. Would be good to have the following events:

@andy00087
Copy link

Hi, any update on this?

@jsanahuja
Copy link
Owner

The on ready is now the callback. The on error will be implemented soon. The on load can't be implemented (decently) until the template generation is made using the HTML API

@andy00087
Copy link

Thanks!
I will try to use callback to "fire" the Instagram feed inside a slider.

@rafael-marques
Copy link

Hi, i tried using callback but it didn`t work. Can you provide an example of it? @jsanahuja

@jsanahuja
Copy link
Owner

Check the example 7 of the docs. Note that callback can be used to render the feed yourself or, if container is defined, as an onready event

@rafael-marques
Copy link

Hi, thanks for the reply.

I did that but it didnt work. I have a containerand I'am using thecallbackasonready`.

Does it depends on the version od the pulgin I'm using?

@jsanahuja
Copy link
Owner

jsanahuja commented Aug 26, 2020

Yes, before 1.3.1 the callback is not triggered unless get_data is true and container is not defined.

If you can't get it working with this version please show your code

@rafael-marques
Copy link

Hi, I updated and it worked. Thanks,

@jsanahuja jsanahuja removed their assignment Mar 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants