| Copyright | (c) 2018-2019 Kowainik |
|---|---|
| License | MPL-2.0 |
| Maintainer | Kowainik <xrom.xkov@gmail.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Summoner.Tui.Widget
Description
This module contains useful helpers to work with Widgets
Documentation
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 ╾───┐ │ │ │ │ │ │ │ │ │ │ └──────────────────────┘
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 │ │ │ └────────────────────────────────────────┘