Allow segmented buttons to be indented

This commit is contained in:
Jeremy Soller 2023-11-16 08:00:33 -07:00
parent bad4400779
commit 2df8cb8862
3 changed files with 40 additions and 0 deletions

View file

@ -104,6 +104,12 @@ where
self.id
}
#[allow(clippy::must_use_candidate, clippy::return_self_not_must_use)]
pub fn indent(self, indent: u16) -> Self {
self.model.indent_set(self.id, indent);
self
}
/// Define the position of the item.
#[allow(clippy::must_use_candidate, clippy::return_self_not_must_use)]
pub fn position(self, position: u16) -> Self {