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