Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
newForm :: [s -> FormFieldState s e n] -> s -> Form s e nbrick Brick.Forms Create a new form with the specified input fields and an initial form state. The fields are initialized from the state using their state lenses and the first form input is focused initially.
renderForm :: Eq n => Form s e n -> Widget nbrick Brick.Forms Render a form. For each form field, each input for the field is rendered using the implementation provided by its FormField. The inputs are then concatenated with the field's concatenation function (see setFieldConcat) and are then augmented using the form field's rendering augmentation function (see @@=). Fields with invalid inputs (either due to built-in validator failure or due to external validation failure via setFieldValid) will be displayed using the invalidFormInputAttr attribute. Finally, all of the resulting field renderings are concatenated with the form's concatenation function (see setFormConcat). A visibility request is also issued for the currently-focused form field in case the form is rendered within a viewport.
renderFormFieldState :: Eq n => FocusRing n -> FormFieldState s e n -> Widget nbrick Brick.Forms Render a single form field collection. This is called internally by renderForm but is exposed in cases where a form field state needs to be rendered outside of a Form, so renderForm is probably what you want.
setFormConcat :: ([Widget n] -> Widget n) -> Form s e n -> Form s e nbrick Brick.Forms Set a form's concatenation function.
setFormFocus :: Eq n => n -> Form s e n -> Form s e nbrick Brick.Forms Set the focused field of a form.
updateFormState :: s -> Form s e n -> Form s e nbrick Brick.Forms Update the state contained in a form. This updates all form fields to be consistent with the new form state. Where possible, this attempts to maintain other input state, such as text editor cursor position. Note that since this updates the form fields, this means that any field values will be completely overwritten! This may or may not be what you want, since a user actively using the form could get confused if their edits go away. Use carefully.
SBHandleBefore :: ClickableScrollbarElementbrick Brick.Types The handle at the beginning (left/top) of the scroll bar.
SBTroughBefore :: ClickableScrollbarElementbrick Brick.Types The trough before the scroll bar.
renderHScrollbarHandleBefore :: HScrollbarRenderer n -> Widget nbrick Brick.Types How to render the handle that appears at the top or left of the scrollbar. The result will be allowed to be at most one column wide.
renderVScrollbarHandleBefore :: VScrollbarRenderer n -> Widget nbrick Brick.Types How to render the handle that appears at the top or left of the scrollbar. The result will be allowed to be at most one row high.