maca88 / datatables.plugins

MIT License
21 stars 5 forks source link

Initialize ColPin with certain columns fixed? #4

Closed marianopeck closed 10 years ago

marianopeck commented 10 years ago

Hi,

Using DataTables, I sometimes want to automatically built my HTML table with already some columns fixed. I used to do:

// add FixedColumns 
   var oTable2 = new $.fn.dataTable.FixedColumns( oTable, {
    "iLeftColumns": 1,
    "iRightColumns": 1,
    "sHeightMatch": "auto"
} );

The problem is that if I do that with ColPin then it gets confused with the ones I already set as fixed form the beginning. So..is there an API for ColPin so that I can initialize which ones are fixed?

Thanks!

maca88 commented 10 years ago

I modified the source in order to pass custom fixedColumns settings:

Example: http://live.datatables.net/IroN/28

marianopeck commented 10 years ago

Thank you very much. It works correct. I close the issue.