matterhorn-50200.11.0: Terminal client for the Mattermost chat system

Safe HaskellNone
LanguageHaskell2010

Matterhorn.Draw.ListOverlay

Synopsis

Documentation

drawListOverlay Source #

Arguments

:: ListOverlayState a b

The overlay state

-> (b -> Widget Name)

The function to build the window title from the current search scope

-> (b -> Widget Name)

The function to generate a message for the search scope indicating that no results were found

-> (b -> Widget Name)

The function to generate the editor prompt for the search scope

-> (Bool -> a -> Widget Name)

The function to render an item from the overlay's list

-> Maybe (Widget Name)

The footer widget to render underneath the search results

-> OverlayPosition

How to position the overlay layer

-> Int

The maximum window width in columns

-> Widget Name 

Draw a ListOverlayState. This draws a bordered box with the overlay's search input and results list inside the box. The provided functions determine how to render the overlay in various states.