On 22/06/17 10:51, Juraj Kubelka 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?
Sure. Not all properties of fasttable are exposed, and I never got a
good answer on the design question of what and how to expose and
propagate properties in Spec. I see the following design questions:
Exposing all the Morphic properties makes for a stronger dependency on
Morphic. Spec itself is written so it can be easily ported from one
underlying widget & gui layer to another (bloc, cocoa, qt, less so for
web?), and different layers have different properties. What is common
and what needs adapters or even layer-specific code?
When nesting components, how do properties propagate? Define once and
reuse everywhere is the goal, but that requires defining where
components can find property values: Theme, Application, Session. In
Spec there is no model/API defined for that, and there is no systematic
approach taken, just pragmatic choices.
Stephan