gopendra-dwivedi / jquery-datatables-column-filter

Automatically exported from code.google.com/p/jquery-datatables-column-filter
0 stars 0 forks source link

Allow text and select widths to be specified in options #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is not a problem, just an enhancement request!!

I would love for my aoColumns object to look like this:
aoColumns: [
  { type: "text" },
  { type: "text", width: "150px" },
  { type: "select", width: "150px" },
  null,
  null
  ]

I have added this functionality to your plugin, but I'm no JS expert so I'm 
sure you could do it better!  I have attached my updated copy of version 1.4.0

Thanks!
Chris

P.S.  It would be great if you could update the zip file under the "Downloads" 
link.  It includes version 0.9.0, not the latest

Original issue reported on code.google.com by Barry.Ch...@gmail.com on 15 Nov 2011 at 8:03

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by joc...@gmail.com on 12 Feb 2012 at 12:39

GoogleCodeExporter commented 9 years ago
Hi,

I'm not sure about this change. Width, height and other properties should be 
set in CSS and not directly in input element as an attribute. 
If you want to control width, could you put some different classes on each TH 
elements that holds a input/select used for search and define css rule to 
specify width? Something like:

th.engine input { width: 50px } 

I will update downloads page.

Thanks,
Jovan

Original comment by joc...@gmail.com on 12 Feb 2012 at 1:17

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r62.

Original comment by joc...@gmail.com on 12 Feb 2012 at 9:15

GoogleCodeExporter commented 9 years ago
Hi Jovan,

I was having an issue with setting the width on the header column itself.  
You're right, it is far better to have such things in the css.  I'm all set now.

Thanks

Original comment by Barry.Ch...@gmail.com on 13 Feb 2012 at 9:37