eisenbraun / columns

A jQuery plugin that converts JSON data into searchable, sortable, HTML tables
http://eisenbraun.github.io/columns
MIT License
105 stars 47 forks source link

Hide Column of Data #16

Closed donlaur closed 8 years ago

donlaur commented 8 years ago

Is there a way to hide a column of data? Lets say you want to have a code for a product in the data but you do not want it displayed? It is in your schema and JSON but not displayed on the columns?

eisenbraun commented 8 years ago

Yes, there is. If you add "hide": true on the column object inside your schema it will be available use, but will not display.

I apologize that this was not documented.

donlaur commented 8 years ago

I added the "hide":true and it did not hide the column on the display.

eisenbraun commented 8 years ago

Can you send me a sample of your code?

donlaur commented 8 years ago
donlaur commented 8 years ago

How do I contact you to send an email?

eisenbraun commented 8 years ago

You can contact me at krepta00@gmail.com.

donlaur commented 8 years ago

Updating the Columns plugin fixed this issue. I had thought I had the newest version, but I guess not. Thanks.

timdmaxey commented 8 years ago

Hi there, thank you btw for the columns! I wanted to know is there a way to invoke the sort outside of the headers? Like have the table in to page and a menu to the left for sorting? You could like "First Name" on the header (which works fine) then ALSO click a button to sort by First Name too..?

donlaur commented 8 years ago

I am not the developer, so they might have other ideas, but sure.

You can use the button to call a function, or send in a variable via a GET in the URL. If you use something like PHP you can get the variable of sortby and then change in the columns setup. I have created buttons to do that. The buttons call a filter function. It is filter, but not sort, but pretty much similar.

On Mon, Nov 16, 2015 at 4:14 PM, timdmaxey notifications@github.com wrote:

Hi there, thank you btw for the columns! I wanted to know is there a way to invoke the sort outside of the headers? Like have the table in to page and a menu to the left for sorting? You could like "First Name" on the header (which works fine) then ALSO click a button to sort by First Name too..?

— Reply to this email directly or view it on GitHub https://github.com/eisenbraun/columns/issues/16#issuecomment-157172925.

timdmaxey commented 8 years ago

Hey thanks for the reply... so you calling filter function the columns table uses? Or you made your own filter function? I just want to want to call something to sort a column... Like it does now when you click on it...

eisenbraun commented 8 years ago

Please see my response on issue #17

timdmaxey commented 8 years ago

Thank you!