Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 954 by chisvasi...@gmail.com: List presentation should support changing the color and font of the text http://code.google.com/p/moose-technology/issues/detail?id=954
Tree, list and column presentations should support changing the color and style of the text. For example, the following code should change just the color of the text:
| browser | browser := GLMTabulator new. browser column: #one. browser transmit to: #one; andShow: [ :a | a list display: [ :x | x ]; textColor: [ :aNumber | (aNumber isDivisibleBy: 2) ifTrue: [ Color green ] ifFalse: [ Color red ] ] ]. browser openOn: (1 to: 6).
Updates: Status: WontFix Labels: Component-Glamour
Comment #1 on issue 954 by tu...@tudorgirba.com: List presentation should support changing the color and font of the text http://code.google.com/p/moose-technology/issues/detail?id=954
This is already possible
GLMWrapper new with: [ :w | w show: [ :a | a list format: [ :x | Text string: x asString attribute: (x odd ifTrue: [TextColor gray] ifFalse: [TextColor black] ) ] ] ]; openOn: ( 1 to: 10)