Raxol.UI.Layout.Inputs (Raxol v2.9.2)

View Source

Handles measurement of input elements like buttons and text inputs.

Summary

Functions

The text a text input shows: its placeholder when the value is empty, its value otherwise, and for an input with a :mask_char one mask character per grapheme of the value (a non-string mask draws *), so no surface drawn from the layout shows a masked value.

Functions

measure(atom, attrs_map, available_space)

text_input_display(attrs_map)

@spec text_input_display(map()) :: String.t()

The text a text input shows: its placeholder when the value is empty, its value otherwise, and for an input with a :mask_char one mask character per grapheme of the value (a non-string mask draws *), so no surface drawn from the layout shows a masked value.