A brick Widget for selectable summary of many elements on a terminal
|Latest on Hackage:||22.214.171.124|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
This module provides a brick Widget that can be used with the brick package to handle situations where there are lots of items to represent to the user along with a corresponding state for each item. One example of where the itemfield would be used is if there are too many elements to reasonably show in a List widget, if those elements are divided into groups, and if some status needs to be shown for each element.
In addition, the user can use the cursor keys and space bar to mark one or more items (presumably so other code can get the list of marked elements and perform a state-changing operation).
There are two example programs built when the examples flag is True (the default): bookcase and workreport. Running these applications should give a better idea of what the itemfield widget is and how it can be used.
- 126.96.36.199 -- enable widget caching and invalidation with Ctrl-R invalidate all
- 188.8.131.52 -- documentation updates; separate changelog file.
- 184.108.40.206 -- added brick 0.17 compatibility
- 220.127.116.11 -- added brick 0.16 compatibility
- 18.104.22.168 -- added stack.yaml for using itemfield with stack
- 22.214.171.124 -- added compatibility for GHC7.10
- 126.96.36.199 -- added compatibility for older distributions
- 188.8.131.52 -- intermediary state is "Pending"
- 184.108.40.206 -- add support for 's' and 'f' keys and mouse events
- 220.127.116.11 -- update from vty-ui to brick
- 0.3.1.0 -- add + key selector to select all successful targets
- 0.3.0.0 -- rename from StateFieldSelector to ItemField
- 0.2.0.1 -- more key events: G=toggle group, A=toggle all, !=mrk bad; add helpMsg
- 0.2.0.0 -- more key events: Shift+Arrow to mark/unmark with move
- 0.1.0.0 -- initial version