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

support dynamic columns #35

Open
msakrejda opened this issue Oct 13, 2013 · 3 comments
Open

support dynamic columns #35

msakrejda opened this issue Oct 13, 2013 · 3 comments

Comments

@msakrejda
Copy link

This may be outside of the scope of the component, but the data for my tables is heavily dynamic, and I don't know how many columns I'll have up-front, or indeed, anything else about them. As far as I can tell, there's no way to use ng-repeat to build the column header and row data information; e.g.,

<angular-table model="rows">
  <header-row ng-repeat="col in columns" sortable="{col.sortable}">
    {{col.label}}
  </header-row>
  <row>
    <column ng-repeat="col in columns">{{row[col.name]}}</column>
  </row>
</angular-table>
@davidjnelson
Copy link
Owner

Hi Maciek,

That's a great feature request, thank you. I'll add it to the feature requests for an upcoming release.

@msakrejda
Copy link
Author

Great, thanks. I've fallen back to hacking dataTables into a directive for now, but I'll definitely revisit angular-table if this is fixed. Thanks for the quick response.

@MaximilianoRicoTabo
Copy link

I'd like such a feature too.

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

3 participants