ekokotov / object-table

Angular directive to easy create dynamic tables from source or URL with sorting, filtering and pagination. Smart templates and good perfomance
BSD 3-Clause "New" or "Revised" License
171 stars 52 forks source link

Preserve Object Table Ordering and Header State #24

Open GhazanfarKhan opened 8 years ago

GhazanfarKhan commented 8 years ago

Hi, I want to preserve table current header and Reorder state and also add headers by check box selection dynamically.

Suppose user makes its own settings in reordering and adding headers according to its own wish then later I want to save that states , Is it possible?

ekokotov commented 8 years ago

Headers is just a parameter. Just change this parameter according new header list. I think you need just array of headers convert to string parameter, like 'header1, header2'

ekokotov commented 8 years ago

Or use Custom headers pattern

ekokotov commented 8 years ago

Like: // in controller $scope.headers = 'Age, full Name'; // in template : <table object-table class="hover-column" data="data" headers="{{headers}}" ...

ekokotov commented 8 years ago

Sorry, But to change set/order of headers or fields dynamically is not possible for now :(.

ekokotov commented 8 years ago

Will implement this feature in next release.