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

Add events trigger to affix #11720

Closed
rroblik opened this issue Dec 5, 2013 · 1 comment
Closed

Add events trigger to affix #11720

rroblik opened this issue Dec 5, 2013 · 1 comment
Milestone

Comments

@rroblik
Copy link

rroblik commented Dec 5, 2013

I think it can be good to be able to have events available on affix to be abble to fire 3 events :

  • when $("#myAffix") become "affixed top" (.affix-top)
  • when $("#myAffix") become "affixed top" (.affix-bottom)
  • when $("#myAffix") come back "non affixed" (.affix)

Exemple could look like :

$('#myAffix').on('top.bs.affix', function () {
  // do something…
})

$('#myAffix').on('bottom.bs.affix', function () {
  // do something…
})

$('#myAffix').on('none.bs.affix', function () {
  // do something…
})

That can solve difficulties to adapt DOM in some case of uses

Thanks.

@fat
Copy link
Member

fat commented Dec 25, 2013

fixed thanks

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

No branches or pull requests

2 participants