Toggle · shorter doc comments
This commit is contained in:
1 file changed
+2
-2
@@ -52,7 +52,7 @@ impl RenderOnce for ButtonGroup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// One choice in a toggle: a label, an icon, or both.
|
/// A toggle choice: a label, an icon, or both.
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct ToggleItem {
|
pub struct ToggleItem {
|
||||||
value: SharedString,
|
value: SharedString,
|
||||||
@@ -215,7 +215,7 @@ impl RenderOnce for ToggleButton {
|
|||||||
|
|
||||||
type OnChange = Rc<dyn Fn(&[SharedString], &mut Window, &mut App)>;
|
type OnChange = Rc<dyn Fn(&[SharedString], &mut Window, &mut App)>;
|
||||||
|
|
||||||
/// Toggles side by side, wrapping onto more lines when narrow. One is chosen, or several with `multiple`.
|
/// Wrapping toggles; one chosen, or several with `multiple`.
|
||||||
#[derive(IntoElement)]
|
#[derive(IntoElement)]
|
||||||
pub struct ToggleGroup {
|
pub struct ToggleGroup {
|
||||||
id: ElementId,
|
id: ElementId,
|
||||||
|
|||||||
Reference in new issue
Block a user