pub struct TableText {
pub empty: String,
pub select_row: String,
pub select_all: String,
pub previous_page: String,
pub next_page: String,
pub expand_row: String,
}Expand description
The words a DataTable or ServerTable shows or names its controls with.
They are English until replaced, so a page in another language passes its own:
use hypersig_ui::TableText;
let japanese = TableText {
empty: "該当する行はありません。".into(),
select_row: "行を選ぶ".into(),
select_all: "すべての行を選ぶ".into(),
previous_page: "前のページ".into(),
next_page: "次のページ".into(),
expand_row: "行の詳細を表示".into(),
};
assert_ne!(japanese, TableText::default());Fields§
§empty: StringShown in place of the rows when there are none, “No results.”.
select_row: StringThe name of the checkbox of a row, “Select row”.
select_all: StringThe name of the checkbox in the header, “Select all rows”.
previous_page: StringThe name of the button that goes back a page, “Previous page”.
next_page: StringThe name of the button that goes forward a page, “Next page”.
expand_row: StringThe name of the button that shows or hides a row’s details, “Show row details”.
Trait Implementations§
impl Eq for TableText
impl StructuralPartialEq for TableText
Auto Trait Implementations§
impl Freeze for TableText
impl RefUnwindSafe for TableText
impl Send for TableText
impl Sync for TableText
impl Unpin for TableText
impl UnsafeUnpin for TableText
impl UnwindSafe for TableText
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more