- ๐ฑ Iโm currently learning go/kubernetes/python
maxisam / angular-bootstrap-affix Goto Github PK
View Code? Open in Web Editor NEWAffix directive for AngularJS inspired by Twitter Bootstrap
Affix directive for AngularJS inspired by Twitter Bootstrap
I can able to destroy affix by using
[Working Fine]
$(window).off('.affix');
$([selector]).removeData('affix').removeClass('affix affix-top affix-bottom');
But, unable to enable affix for same element
[Not working]
$(window).on('.affix');
$([selector]).affix({
offset: {
top: function () {
return $([selector]).position().top;
}
}
});
Is there any specific way to destroy/disable affix for specific element ?
Thanks in advance.
Block loses width when affix is set.
I was trying to use this module instead of angular-strap, its smaller and does exactly what I need without a bunch of other dependencies, but I got this problem that is not happening in angular-strap.
I have a requirement to affix a lot of block, some of them in the same page and is an additional effort to set width in specific CSS classes.
Can this be considered an improvement?
When trying to run this plugin, this error appears:
Failed to instantiate module mgcrea.bootstrap.affix due to: Error: [$injector:modulerr] Failed to instantiate module mgcrea.jquery due to: Error: [$injector:nomod] Module 'mgcrea.jquery' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
There has previously been the same issue opened, however the method to resolve goes against how a plugin should work. It also did not resolve my error, and caused issues with other packages I have installed.
I have attempted to install mcgrea.jquery which failed to resolve my woes.
Please, if you could, resolve this issue. It looks like a great package, one i'd rather not modify if I can avoid doing so.
Thank you.
i have this error when I install the script using bower :
Failed to instantiate module mgcrea.bootstrap.affix due to:
Error: [$injector:modulerr] Failed to instantiate module mgcrea.jquery due to:
Error: [$injector:nomod] Module 'mgcrea.jquery' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
When the affixed list grows too long for the display hight the user wont be able to see the last or first elements. To reproduce a similar effect simply go to http://getbootstrap.com/components/ resize the window to be small and try to read the right sidebar.
It would be nice to (optionally) check for this and then disable affix.
Hi,
Is angular-jquery a necessary dependency? Many of us will already have Jquery installed and working with angular.
thanks,
Adam
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.