graphix-package-gui 0.8.0

A dataflow language for UIs and network programming, GUI package
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
let text_input = |
  #placeholder: &string = &"",
  #on_input: fn(s: string) -> Any = |_| null,
  #on_submit: fn(e: null) -> Any = |_| null,
  #is_secure: &bool = &false,
  #width: &Length = &`Fill,
  #padding: &Padding = &`All(5.0),
  #size: &[f64, null] = &null,
  #font: &[Font, null] = &null,
  #disabled: &bool = &false,
  value: &string
| -> Widget `TextInput({ value, placeholder, on_input: &on_input, on_submit: &on_submit, is_secure, width, padding, size, font, disabled })