#[repr(C)]pub struct ShellLabels {
pub back: Option<String>,
pub load_more: Option<String>,
pub refresh: Option<String>,
pub ok: Option<String>,
pub cancel: Option<String>,
pub done: Option<String>,
pub pdf_error: Option<String>,
pub pdf_title: Option<String>,
pub web_title: Option<String>,
}Expand description
Text the shells draw themselves (back buttons, web list controls, dialog/picker defaults), in the
app’s language. Set once on the scaffold with with_labels; every field is optional and falls
back to the shell’s built-in English. A label passed to a specific call (confirm_with,
Picker) still wins over these.
Fields§
§back: Option<String>Split back-button text on every shell; the Scaffold back button’s accessible name.
load_more: Option<String>Web LazyList “Load more” button.
refresh: Option<String>Web LazyList refresh button (shown after a ↻) and the web scaffold refresh button’s name.
ok: Option<String>Confirm dialog: the confirming button when the call gives no label.
cancel: Option<String>Confirm dialog and pickers: the dismissing button when the call gives no label.
done: Option<String>Pickers: the accepting button when the call gives no label.
pdf_error: Option<String>Android PdfView error text.
pdf_title: Option<String>Web PDF iframe title (accessibility).
web_title: Option<String>Web WebView iframe title (accessibility).
Implementations§
Source§impl ShellLabels
impl ShellLabels
pub fn new() -> ShellLabels
pub fn back(self, l: impl Into<String>) -> ShellLabels
pub fn load_more(self, l: impl Into<String>) -> ShellLabels
pub fn refresh(self, l: impl Into<String>) -> ShellLabels
pub fn ok(self, l: impl Into<String>) -> ShellLabels
pub fn cancel(self, l: impl Into<String>) -> ShellLabels
pub fn done(self, l: impl Into<String>) -> ShellLabels
pub fn pdf_error(self, l: impl Into<String>) -> ShellLabels
pub fn pdf_title(self, l: impl Into<String>) -> ShellLabels
pub fn web_title(self, l: impl Into<String>) -> ShellLabels
Trait Implementations§
Source§impl Clone for ShellLabels
impl Clone for ShellLabels
Source§fn clone(&self) -> ShellLabels
fn clone(&self) -> ShellLabels
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more