plushie/widget/text_input

TextInput widget builder (single-line text entry).

Types

pub opaque type TextInput

Values

pub fn a11y(input: TextInput, a: a11y.A11y) -> TextInput

Set accessibility properties for this widget.

pub fn align_x(
  input: TextInput,
  a: alignment.Alignment,
) -> TextInput

Set the horizontal alignment.

pub fn build(input: TextInput) -> node.Node

Build the text input into a renderable Node.

pub fn font(input: TextInput, f: font.Font) -> TextInput

Set the font.

pub fn line_height(input: TextInput, h: Float) -> TextInput

Set the line height.

pub fn new(id: String, value: String) -> TextInput

Create a new text input builder.

pub fn on_paste(input: TextInput, enabled: Bool) -> TextInput

Enable the paste event.

pub fn on_submit(input: TextInput, enabled: Bool) -> TextInput

Enable the submit event.

pub fn padding(input: TextInput, p: padding.Padding) -> TextInput

Set the padding.

pub fn placeholder(input: TextInput, p: String) -> TextInput

Set the placeholder text.

pub fn secure(input: TextInput, s: Bool) -> TextInput

Set whether input is masked (password mode).

pub fn size(input: TextInput, s: Float) -> TextInput

Set the size.

pub fn style(input: TextInput, s: String) -> TextInput

Set the style.

pub fn width(input: TextInput, w: length.Length) -> TextInput

Set the width.

Search Document