feat(segmented-button): configurable close icons
This commit is contained in:
parent
843919e44f
commit
4fa61eeafd
10 changed files with 288 additions and 64 deletions
|
|
@ -63,6 +63,13 @@ where
|
|||
self
|
||||
}
|
||||
|
||||
/// Shows a close button for this item.
|
||||
#[allow(clippy::must_use_candidate, clippy::return_self_not_must_use)]
|
||||
pub fn closable(self) -> Self {
|
||||
self.model.closable_set(self.id, true);
|
||||
self
|
||||
}
|
||||
|
||||
/// Associates data with the item.
|
||||
///
|
||||
/// There may only be one data component per Rust type.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue