summoner-tui-0.1.0: Tool for scaffolding fully configured batteries-included production-level Haskell projects using TUI.

Safe HaskellNone
LanguageHaskell2010

Summoner.Tui.Widget

Description

This module contains useful helpers to work with Widgets

Synopsis

Documentation

label :: String -> Widget n -> Widget n Source #

Adds label to the Form's field.

borderLabel :: String -> Widget n -> Widget n Source #

Like borderWithLabel but receives String. Also adds padding and fancy unicode characters for border label.

Example:

┌─────╼ Some label ╾───┐
│                      │
│                      │
│                      │
│                      │
│                      │
└──────────────────────┘

borderName :: String -> Widget n Source #

Border label pretty text Widget

hArrange :: [Widget n] -> Widget n Source #

Arranges Widgets horizontally.

Example:

 [x] Cabal   [ ] Stack

listInBorder Source #

Arguments

:: String

Border label

-> Int

Horizontal limit

-> Int

Additional vertical limit

-> [Text]

List of text entries

-> Widget n 

Shows list of elements inside borderWithLabel.

Example:

┌────────────Some label──────────────────┐
│                                        │
│          > 8.2.2                       │
│          > 8.4.3                       │
│          > 8.4.4                       │
│                                        │
└────────────────────────────────────────┘