When I was using version 2.7.0,
I was able to do (availableItems is a list of String):
TwinColGrid<String> select = new TwinColGrid<String>(availableItems)
.addFilterableColumn(String::toString, itemsDescription, "filter", true)
.withSizeFull()
.withDragAndDropSupport()
.selectRowOnClick();
I am trying to make changes to adapt to 3.1.0 following the sample code:
final TwinColGrid<Book> twinColGrid = new TwinColGrid<>("TwinColGrid no binding demo and drag and drop support", availableBooks)
.addColumn(Book::getIsbn, "ISBN")
.addColumn(Book::getTitle, "Title")
.withLeftColumnCaption("Available books")
.withRightColumnCaption("Added books")
.withoutAddAllButton()
.withSizeFull()
.withDragAndDropSupport();
twinColGrid.setValue(selectedBooks);
I changed my code to:
new TwinColGrid<String>(availableItems)
.addFilterableColumn(String::toString)
.withSizeFull()
but it says The method withSizeFull() is undefined for the type FilterableTwinColumn<String>
Is it possible to use the TwinColumnGrid for String on version 3.1.0?