feat(segmented_button): Support adding divider above items in vertical segmented button
This commit is contained in:
parent
05da0a83b2
commit
2faaeddb05
4 changed files with 44 additions and 2 deletions
|
|
@ -83,6 +83,12 @@ where
|
|||
self
|
||||
}
|
||||
|
||||
#[allow(clippy::must_use_candidate, clippy::return_self_not_must_use)]
|
||||
pub fn divider_above(self, divider_above: bool) -> Self {
|
||||
self.model.divider_above_set(self.id, divider_above);
|
||||
self
|
||||
}
|
||||
|
||||
/// Define an icon for the item.
|
||||
///
|
||||
/// ```ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue