monomer-hagrid: A datagrid widget for the Monomer library.

[ gui, library, mit ] [ Propose Tags ]

A configurable Monomer widget that shows a scrollable grid of data.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0, 0.2.0.1, 0.2.1.0, 0.2.1.1, 0.3.0.0, 0.3.0.1, 0.3.1.0, 0.3.1.1, 0.3.1.2
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), containers (>=0.6.5.1 && <0.7), data-default-class (>=0.1.2.0 && <0.2), ilist (>=0.4.0.1 && <0.5), lens (>=5.1.1 && <5.2), monomer (>=1.5.0.0 && <1.6), monomer-hagrid, text (>=1.2.5.0 && <1.3), time (>=1.11.1.1 && <1.12) [details]
License MIT
Author
Maintainer garethdanielsmith@gmail.com
Category GUI
Home page https://github.com/Dretch/monomer-hagrid#readme
Bug tracker https://github.com/Dretch/monomer-hagrid/issues
Source repo head: git clone https://github.com/Dretch/monomer-hagrid
Uploaded by garethdanielsmith at 2022-10-15T20:26:21Z
Distributions
Executables examples
Downloads 376 total (30 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-10-15 [all 1 reports]

Readme for monomer-hagrid-0.1.0.0

[back to package description]

Monomer-Hagrid

A datagrid widget for the Monomer library.

Example hagrid widget screenshot

Current Status

  • Somewhat buggy and incomplete. Don't build your business on this.

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.

Goals

  • Have complete and helpful documentation.
  • Be reasonably configurable and inspectable.
  • Be no uglier than standard Monomer widgets.
  • Be performant with up to ten thousand rows.
  • Have some tests.

Todo List

  • Improve performance with lots of rows (e.g. 1000).
  • 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.

To build and run examples

stack run

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.

To format the source code

# This needs at least ormolu 0.5.0.0 to avoid breaking dot-record syntax
ormolu --mode inplace $(find . -name '*.hs')