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

Advanced header handling #4

Closed
gharibi opened this issue Jan 11, 2019 · 1 comment
Closed

Advanced header handling #4

gharibi opened this issue Jan 11, 2019 · 1 comment
Assignees

Comments

@gharibi
Copy link
Owner

gharibi commented Jan 11, 2019

Currently the header attribute is supposed to be an array composed of the list of headers. In reality, header should have a field and an alias. This is quite important because the order of items in an object for the exportable are not necessarily the same and this cause a mismatch between the header and the rows.

The header has to be defined as follows:

headers: [{
    name: 'header_1',
    alias: 'header 1 alias',
    flex: 1
  },{
    name: 'header_2',
    alias: 'header 2 alias',
    flex: 1
  },
    . . . 
  {
    name: 'header_n',
    alias: 'header n alias',
    flex: 1
  }]

Since the current version of library is in production, it is not possible to simply shut the old versions down. In other words, there must be a backward-compatible solution. Which means it should be designed in a way, not to affect the current users.

@gharibi gharibi self-assigned this Jan 11, 2019
@gharibi
Copy link
Owner Author

gharibi commented Jan 14, 2019

This feature is implemented in version 3.3.1.

@gharibi gharibi closed this as completed Jan 14, 2019
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

1 participant