input_text

Function input_text 

Source
pub fn input_text(id: &str, placeholder: &str) -> String
Expand description

Create a text input widget.

Returns the current text value (set by user or default). When the user changes the text, the cell automatically re-executes.

§Arguments

  • id - Unique identifier for this widget within the cell
  • placeholder - Placeholder text shown when empty

§Example

let name = venus::input_text("name", "Enter your name");
println!("Hello, {}!", name);