Skip to content

Commit 90fa576

Browse files
author
Jiren Patel
committed
Added option to append pagination
1 parent f47f6b2 commit 90fa576

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

stream_table.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,13 @@
104104
this.paging_opts.per_page_class = ['st_per_page', opts.per_page_class].join(' ');
105105
this.opts.pagination = this.paging_opts;
106106

107-
$(this.main_container).after('<div class="'+ this.paging_opts.container_class +'"></div>');
107+
var html = '<div class="'+ this.paging_opts.container_class +'"></div>';
108+
109+
if(this.paging_opts.container){
110+
$(this.paging_opts.container).html(html);
111+
}else{
112+
$(this.main_container).after(html);
113+
}
108114

109115
this.$pagination = $('.' + p_classes.join('.'));
110116
};
@@ -188,7 +194,6 @@
188194
if (!this.textFunc) {
189195
this.textFunc = this._makeTextFunc(data[0]);
190196
}
191-
console.log(this.textFunc)
192197

193198
for(i; i < l; i++){
194199
this.text_index.push(this.textFunc(data[i]).toUpperCase());

0 commit comments

Comments
 (0)