ssuperczynski / ngx-easy-table

The Easiest Angular Table. 12kb gzipped! Tree-shakeable. 55 features and growing!
https://ngx-easy-table.eu
MIT License
371 stars 100 forks source link

Column Reorder not working properly #296

Closed ninjavis closed 4 years ago

ninjavis commented 4 years ago

Hey there! Thank you so much for this awesome table module.

I installed it this morning and am playing around with the functionality, specifically column reordering.

On your demo page, https://ngx-easy-table.eu/#/reorder, the issue of column data being under the wrong heading exists.

Would it be possible to solve this please? I have double checked the columns: [] and data: [] values too, which seem to be fine:

public data = [{
    phone: '+1 (934) 551-2224',
    age: 20,
    company: 'ZILLANET',
    name: 'Valentine Webb',
    isActive: false,
  }, {
    phone: '+1 (948) 460-3627',
    age: 31,
    company: 'KNOWLYSIS',
    name: 'Heidi Duncan',
    isActive: true,
  }];

this.columns = [
      { key: 'phone', title: 'Phone' },
      { key: 'age', title: 'Age' },
      { key: 'company', title: 'Company' },
      { key: 'name', title: 'Name' },
      { key: 'isActive', title: 'STATUS' },
    ];

image

Thank you so much!

ssuperczynski commented 4 years ago

Sorry, for the late answer. I don't have as much time as before to develop the new features/fix bugs. I'll try to fix this bug as soon as possible.

septk commented 4 years ago

any update?

ssuperczynski commented 4 years ago

Fixed in https://github.com/ssuperczynski/ngx-easy-table/releases/tag/13.0.2