What considerations are there to have individual row heights? i.e. How close are we to having a spreadsheet interface like simplfied Excel? cheers -ben On Thu, Jun 22, 2017 at 4:51 PM, Juraj Kubelka <juraj.kubelka@icloud.com> wrote:
Hi,
I have a code like this:
FastTableModel new displayBlock: [ :node | node name ]; items: Collection withAllSubclasses; openWithSpec.
Which works fine. But I would like to define row height for each item. FTTableMorph has a method rowHeight:. Is it possible?
One possible use case could be:
FastTableModel new displayBlock: [ :node | node name, String cr, â number of methods: ', node methods size asString ]; items: Collection withAllSubclasses; "rowHeight: 50;â âdoes not work" openWithSpec
In that case, each list item is composed by a class name on the first line, and the number of methods on the second line.
For FTTableMorph the code looks like this:
FTTableMorph new extent: 650@500; selectRowIndex: 1; showFirstRowSelection; dataSource: (FTEasyListDataSource new elements: Collection withAllSubclasses; display: [ :node | Smalltalk ui theme newColumnIn: World for: { node name asStringMorph. (' number of methods: ', node methods size asString) asStringMorph }]); *rowHeight: 50;* beMultipleSelection; openInWindow
Or do you propose another solution?
Thanks! Juraj