# Kibana 4.6 - How to make header position fixed in Data table?

**URL:** https://discuss.elastic.co/t/kibana-4-6-how-to-make-header-position-fixed-in-data-table/64954
**Category:** Kibana
**Created:** [November 3, 2016, 10:05pm UTC](https://discuss.elastic.co/t/kibana-4-6-how-to-make-header-position-fixed-in-data-table/64954 "2016-11-03T22:05:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![phpmind](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@phpmind](https://discuss.elastic.co/u/phpmind)
#### Post date: [November 3, 2016, 10:05pm UTC](https://discuss.elastic.co/t/kibana-4-6-how-to-make-header-position-fixed-in-data-table/64954/1 "2016-11-03T22:05:51Z")

</div>

Hey,

I am creating a plugin to have "header position fixed" in Data table .

In order to do that -

1. 

I added a id ("header\_dash\_fixed\_pos") in file - src/ui/public/doc\_table/doc\_table.html

 (line 6)
1. In plugin folder - index.js file

module.exports = function(kibana) {  
return new kibana.Plugin({  
uiExports: {  
visTypes: ['plugins/kbn-data-table-fixed-header/fixed-position\_new']  
}  
});  
};

1. in fixed-position\_new.js file

define(function(require) {  
require('jquery');

require(["plugins/kbn-data-table-fixed-header/jquery.floatThead"], function() {  
var $table = $('table#header\_dash\_fixed\_pos'); // NOT WORKING  
$table.floatThead(); / // NOT WORKING  
});

});

Somehow these 2 lines not executing.

var $table = $('table#header\_dash\_fixed\_pos');  
$table.floatThead();

and as result i don't see fixed header.

However when i put this code in console of the browser it start working.

I am not sure where i am making mistake. It looks like either src/ui/public/doc\_table/doc\_table.html this file is not loading first or my file loading first.

How to fix this issue.

I am very new to plugin development. Now sure what else to do.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 1:34pm UTC](https://discuss.elastic.co/t/kibana-4-6-how-to-make-header-position-fixed-in-data-table/64954/2 "2017-07-06T13:34:39Z")

</div>


