@hackage monomer-hagrid0.4.0.1
A datagrid widget for the Monomer library.
Installation
Dependencies (6)
- base >=4.7 && <5
- containers >=0.6.8 && <0.7
- data-default >=0.7.1.3 && <0.8
- lens >=5.3.2 && <5.4
- monomer >=1.5.1.0 && <1.7
- text >=2.1.1 && <2.2 Show all…
Dependents (1)
@hackage/monomer-flatpak-example
Package Flags
examples
(off by default)
Whether to build the example executables. Off by default because they are not usually wanted.
Monomer-Hagrid
A datagrid widget for the Monomer library.

Current Status
- Somewhat buggy and incomplete. Don't build your business on this.
Current Features
- Vertical and horizontal scrolling.
- Resizable columns.
- Column sorting, with a customizable sort key.
- Configurable column alignment (left or right).
- Custom widgets for each cell, to override the standard label.
- Custom width/height padding for each cell, configured per column.
- Scrolling to a particular row when sent a message.
- Custom footer widgets on the bottom of each column.
- Efficient implementation that only inflates visible widgets, scaling to at least 10000 rows.
Definite Future Goals
- Better documention.
- Better tests.
- Prettier appearance.
Possible Future Goals
- Explore providing an API where current sort/column widths/etc are stored in the parent model and updated by hagrid via a lens. This may remove some complexity around merging and the specification of initial sorts/column widths.
API Documentation
See the generated docs on Hackage.
To build and run examples
stack build --flag monomer-hagrid:examples
`stack path --local-install-root`/bin/example-basic # Demo of the basic functionality.
`stack path --local-install-root`/bin/example-big-grid # Demo of a grid with over 10000 rows.
`stack path --local-install-root`/bin/example-resizing-cells # Demo where the cells are constantly changing size.
Contribution Guide
- This is "free as in mattress" software!
- You are welcome to open an issue with bug reports or feature requests, but you may not get a response.
- Unsolicited pull requests will likely be ignored.
Scripts
./scripts/format.sh # format the source code
./scripts/publish.sh # publish to hackage