pub struct LinkStyleConfig {
pub text: Prop<String>,
pub is_hovered: Signal<bool>,
pub is_pressed: Signal<bool>,
pub is_focused: Signal<bool>,
pub is_visited: Signal<bool>,
pub is_disabled: Signal<bool>,
}Fields§
§text: Prop<String>Label text as a reactive Prop<String>. The widget converts its
LocalizedString via .into() (a tr! source yields a bound,
locale-reactive prop); the style binds it to the label widget.
teksilo-core can’t name LocalizedString (i18n depends on core,
not the reverse), so the i18n type is erased to Prop<String> here.
is_hovered: Signal<bool>true while the pointer is over the link.
is_pressed: Signal<bool>true while the link is being pressed (mouse-down or Space/Enter).
is_focused: Signal<bool>true while the link holds keyboard focus.
is_visited: Signal<bool>true if the link’s target has previously been visited. The
app owns visited-tracking; default Signal::new(false) is
fine for links that don’t represent URLs.
is_disabled: Signal<bool>true when the widget is effectively disabled (this node or
any ancestor has its arena enabled_state resolved to false).
Reactive: re-emits when enabled_when(..., signal) flips.
Trait Implementations§
Source§impl Clone for LinkStyleConfig
impl Clone for LinkStyleConfig
Source§fn clone(&self) -> LinkStyleConfig
fn clone(&self) -> LinkStyleConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more