godilite / editable

This library allows you to create editable tables and spreadsheets with ease, either by providing initial row and column count to display an empty table or use it with predefined rows and column data sets.
MIT License
104 stars 36 forks source link

A few fixes and enhancements to header and data styling #33

Closed timmaffett closed 3 years ago

timmaffett commented 3 years ago

I have fixed a couple existing bugs with styling (zebra stripes did not cover cell on editable data rows when non-editable rows wrapped, zebra stripes were still visible on non-editable rows when stripes turned off, maybe others, see code/comments)

I have also added support for completely controlling the style and alignment of the table headers.

I also made changes so that when styling/alignment is specified for table data then it is ALSO used by the non editable columns.

Added support for specifying max lines for editable data cells so that they can wrap and have all data visible.

Added some small changes to example to illustrate some of these capabilities/fixes.

All changes were made to ensure that all existing behavior stays the same when the features are not used. (The data styling is now used for NON-editable table data however, but that seems like a bug when it wasn't used)

Thanks for the widget!