Skip to content

Latest commit

 

History

History
151 lines (93 loc) · 3.77 KB

CHANGELOG.md

File metadata and controls

151 lines (93 loc) · 3.77 KB

CHANGELOG

0.5.1

2023-10-04

Features

  • adds the ability to freeze columns by adding the frozen property

0.5.0

2023-10-02

Features

  • uses a wrapper library to handle observing the table container for width/height changes
  • initial flicker for variable-row-size tables should be mitigated
  • more typescript specifications

0.4.10

2023-09-30

Features

  • added ability to specify the footerHeight
  • removed some typescript warnings
  • slight performance tweaks

0.4.7

2023-09-28

Features

  • added a footer prop to each column object in the columns array. allows the user to create footer cell columns.
  • footerComponent will still provide a more customizable footer experience
  • hopefully fix issues with the auto-calculation of tables when minTableHeight and/or maxTableHeight is used.
  • slimmed down some of the opinionated CSS, giving the user more control over header and body styles

0.4.6

2023-09-28

Features

  • added minTableHeight and maxTableHeight
  • added footer styling with footerStyle and footerClassname
  • expose column widths to footerComponent to help expose widths

0.4.5

2023-09-27

Features

  • Added the ability to provide a footer using the footerComponent property
  • If footerComponent is defined, can also provide a stickyFooter prop to make the footer sticky.
  • Since the last deploy, upgraded all the dependencies to fix Dependabot alerts
  • Can provide classNames to several different properties to make it more Tailwind friendly
  • The example site is powered by Vite as opposed to create-react-app
  • The example site is now in Typescript

0.4.2

2020-09-07

Bugfix

  • Moved the RowContainer to its own component. This should resolve the issue of the table cell re-rendering on resize.

0.4.1

2020-09-06

Features

  • Added the ability to pass in a ref to the component in order to access the scrollTo and scrollToItem functions.

0.4.0

2020-05-05

BREAKING

A few changes were made in order to support increased customization, with more to come in future releases.

  • The cell property in the columns array has been changed. cell now renders the entire cell, as opposed to just the contents inside of the cell. This is now an advanced feature.
  • cell now expects a component that takes in the style prop as well. style will contain the correct widths of the cell.
{
  key: 'id',
  header: 'ID',
  cell: ({ row, style }) => (
    <div style={style}>
      {row.id}
    </div>
  )
}

Features

  • Added the content property. This property functions exactly how cell used to function in previous releases. content renders a custom component inside of the default cell.
{
  key: 'id',
  header: 'ID',
  content: ({ row }) => row.id
}
  • For simplicity, added an onRowClick property that takes an event and the index of the row that was clicked.
type onRowClick = (e: Event, { index }: { index: number }) => void;
  • Added a rowRenderer, which also takes a style prop. This is useful if you want to customize the wrapper around the cells in a row.

0.3.8

2020-04-26

Features

  • added the props rowStyle, tableStyle, and headerStyle to allow for more customization options. Since the Table component does take a className, you can still do things using libraries such as styled-components if you prefer.

0.3.7

2020-04-19

Bug Fixes

  • less setState calls when updating the default size.

0.3.6

2020-04-19

BREAKING

  • estimatedRowHeight is no longer in use. For tables with no specified rowHeight, the median of the rendered row heights is used as a default if the row had not been rendered before.

Bug Fixes

  • Uses memoization in more places.
  • reduces row flicker issue when resizing.