v1.1.0
Sorting has landed π
Big change to 1.1
is addition of sorting, there has been quite a few changes so check out CHANGELOG.md, also pasted bellow for release verbosity.
Changelog
β BREAKING CHANGES
- Refactored
Table
to support sorting, some methods have changed most notably revolving around adding rows since now its taking [][]any instead of [][]string, initialTable
is now closer toTableSingleType[string]
- Stickers now uses generics, so go1.18 is mandatory
Fixes
- Fixed recalculation triggering when *FlexBoxCell or *FlexBoxRow is fetched from the FlexBox
- Small lexical changes and tidying up
Features
- Sorting is now availible for
Table
andTableSingleType
Table
has been reformatted and now supports sorting by type, whenTable
is initialized each colum type is set tostring
, you can now update that usingSetType
method, types supported are located in interfaceOrdered
- Added
TableSingleType
type which locks row type tostring
, this makes it easier for user when adding rows as there is much less errors that can occurr as when usingTable
where all depends on a type - Added method
OrderByColumn
which envokes sorting for columnn
, for now you cannot explicitly set sorting direction and its switching betweenasc
anddesc
when you sort same column - Added method
GetCursorLocation
which returnsx
,y
of the curent cursor location on the table - Added error types
TableBadTypeError
,TableRowLenError
,TableBadCellTypeError
- Minor preformace enhancements