El 22-06-2017, a las 17:19, Ben Coman <btc@openinworld.com> escribió:
What considerations are there to have individual row heights?
The way I understand FastTable, it is not possible to have each item with different height. Cheers, Juraj
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 <mailto: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
<Captura de pantalla 2017-06-22 a la(s) 10.50.08.png>
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
<Captura de pantalla 2017-06-22 a la(s) 10.49.08.png>
Or do you propose another solution?
Thanks! Juraj