Skip to content
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

Events #13

Open
NeilAllen opened this issue Jul 5, 2016 · 1 comment
Open

Events #13

NeilAllen opened this issue Jul 5, 2016 · 1 comment

Comments

@NeilAllen
Copy link

NeilAllen commented Jul 5, 2016

Hi!,
do any of the sticky.js events fire & if so, can you give an example?

Specifically, sticky-update..

Ta!, Neil

@estshy
Copy link

estshy commented Sep 20, 2016

@NeilAllen

You can extend this component and get access to underlaying sticky implementation.

import Ember from 'ember';
import StickyContainer from 'ember-cli-sticky/components/sticky-container';

export default StickyContainer.extend({
   yourActions: Ember.on('didInsertElement', function() {
        this.$().sticky.whatever();
   }),
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants