zng/
label.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//! Label widget and properties.
//!
//! The [`Label!`](struct@Label) widget is a text presenter that is focusable, when it receives
//! focus it can transfer it to another target widget.
//!
//! ```
//! use zng::prelude::*;
//! # let _scope = APP.defaults();
//!
//! # let _ =
//! Container! {
//!     child_start = zng::label::Label!("Name", "name-field"), 5;
//!     child = TextInput! {
//!         id = "name-field";
//!         txt = var_from("");
//!     };
//! }
//! # ;
//! ```
//!
//! # Full API
//!
//! See [`zng_wgt_text_input::label`] for the full widget API.

pub use zng_wgt_text_input::label::{style_fn, DefaultStyle, Label};