Skip to main content

with_labels

Function with_labels 

Source
pub fn with_labels(widget: Widget, labels: ShellLabels) -> Widget
Expand description

Set the app-wide shell text (see ShellLabels) on a scaffold — e.g. with_labels(root, ShellLabels::new().back("Nazad").ok("U redu").cancel("Otkaži")) also puts those words on a plain cx.confirm. Combines with the other scaffold helpers in any order. No-op on other widgets.