Happy !
hernan / MorphicGrid
Monticello registration
About MorphicGrid
Description
Can be used presently to display and edit grids of data. The grid can be auto-populated from a collection and you can give it either selectors or blocks to run to auto-generate columns for the collection. Additionally, if a block for a given column returns a morph then the morph will be displayed in the column allowing you to even do crazy things like hierarchical grids by embedding TableMorphs as cells of a parent TableMorph.
Originally developed by John Pierce. Maintained by HernĂ¡n Morales Durand.
Examples
Open one of the class examples in GridMorph:
GridMorph blocksExampleEditable
or
GridMorph columnNamesExampleEditable
or with your own data:
| matrix rows cols |
rows := 2.
cols := 3.
matrix := Matrix rows: rows columns: cols.
1 to: rows do: [ : r |
1 to: cols do: [ : c |
matrix at: r at: c put: SmallInteger maxVal atRandom ] ].
((GridMorph
from: matrix
performing: ((Generator on: [ : g | 1 to: cols do: [: c | g yield: c asString -> #asNumber ]]) upToEnd))
title: 'GridMorph Example') openInWorld
