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

feat: added fixed header to the table #533

Merged
merged 4 commits into from
Jan 18, 2019

Conversation

AlejandroYanes
Copy link
Collaborator

fixes #453

@AlejandroYanes AlejandroYanes changed the title feat: added fixed header feat: added fixed header to the table Jan 16, 2019
@coveralls
Copy link

coveralls commented Jan 16, 2019

Pull Request Test Coverage Report for Build 1273

  • 24 of 36 (66.67%) changed or added relevant lines in 4 files are covered.
  • 6 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.6%) to 76.343%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Table/head/index.js 11 15 73.33%
src/components/Table/index.js 10 18 55.56%
Files with Coverage Reduction New Missed Lines %
src/components/Table/head/header.js 1 29.58%
src/components/Table/index.js 5 62.32%
Totals Coverage Status
Change from base Build 1237: -0.6%
Covered Lines: 1400
Relevant Lines: 1754

💛 - Coveralls

return field === selectedColumn;
}
return false;
};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can put this function outside
same for resolveSortDirection

const { columns } = this.state;
const { field } = columns[columnIndex];
onSort(event, field);
this.setState({ selectedColumn: columnIndex });
let newSortDirection;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nextSortDirection

@LeandroTorresSicilia LeandroTorresSicilia merged commit d582720 into master Jan 18, 2019
@TahimiLeonBravo TahimiLeonBravo deleted the implement-table-fixed-header branch September 23, 2019 08:30
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

Successfully merging this pull request may close these issues.

feat: add new feature to the table component
3 participants