-
Notifications
You must be signed in to change notification settings - Fork 297
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
Does Work with Angular? #124
Comments
I just saw that 'this' in below function is array. When I use your plugin and console it's object Can you take a look. from jsfiddle example thiss, [table#mytbl, context: document, selector: "#mytbl"] that's the reason it doesn't get into loop |
I manged to make it work with angular (with ng-repeated multilevel columns). The trick was to turn the JQuery plugin into a directive and call base.init via $timeout so that the ng-repeated columns are available when init gets called. The example usage is then pretty straightforward:
Works like a charm! |
Hello, dzendras |
I made it work. It's great.No problem with angular 1.x Thanks again! Thanks |
@dzendras Can you please share your directive code ? I looking to make this work with Angular 2. |
+1 one more request for code for the angular directive, please Edit: For anyone else interested in this for Angular (Angular 1 in my case), https://github.com/brandon-barker/angular-floatThead seems to work pretty well. |
Hi,
//my controller
angular.module('myapp').controller('controller', etc etc) {
$(function () {
$("#my-table").stickyTableHeaders();
});
//other codes
}
//this is the view
in jquery.stickytableheader.js I put some console logs to see if jquery.stickytableheader.js is working. I see that (function ($, window, undefined) {
'use strict';
console.log("1==============="); //works I see that in console window
function Plugin (el, options) {
console.log("2==============="); //doesnt work
$.fn[name] = function ( options ) {
console.log("3==============="); //works I see that in console window
Any idea why Plugin function doesn't work. thats the one not making stickyheader not work
Thanks
The text was updated successfully, but these errors were encountered: