Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide specific columns #409

Closed
zeeshanhanif opened this issue Sep 1, 2014 · 5 comments
Closed

Hide specific columns #409

zeeshanhanif opened this issue Sep 1, 2014 · 5 comments

Comments

@zeeshanhanif
Copy link

It seems that we cannot hide specific columns, like what If we have an array that contains 4 properties and we want to display only three while hiding the fourth one dynamically based on $watch or some other sort of tool.

@zeitos
Copy link

zeitos commented Sep 1, 2014

did you try using header-class="myHideClass" attribute?

@snario
Copy link

snario commented Oct 9, 2014

#94

@zdila
Copy link

zdila commented May 15, 2015

It works with this:

...
<table ng-table="tableParams" ...
  ...
  <td ng-show="tableParams.myShowFlag">
  ...
...
getData: function ($defer, params) {
  params.myShowFlag = false;
  ...
}
...

@eughymar
Copy link

Thank you very much zdila this work for me.

@ale-nasso
Copy link

I wanted to hide a column, but I wanted to extract it into a CSV with ng-table-to-csv, so I used @zdila's solution and, as suggested by @zeitos, I have added an header-class to hide the header.
This way my column is on the DOM, but not visible and it's present on my CSV.

<td ng-show ="cashFlowsTable.myShowFlag" data-title="'Debito Residuo a decorrenza'" header-class="'ng-hide'">{{::cashFlow.debResd}}</td>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants