Fix documentation of default method for slider
This commit is contained in:
parent
468f6a461a
commit
55791e45eb
2 changed files with 4 additions and 2 deletions
|
|
@ -109,7 +109,8 @@ where
|
|||
}
|
||||
|
||||
/// Sets the optional default value for the [`Slider`].
|
||||
/// If set, [`Slider`] will reset to this value when doubled-clicked, ctrl-clicked, or command-clicked.
|
||||
///
|
||||
/// If set, the [`Slider`] will reset to this value when ctrl-clicked or command-clicked.
|
||||
pub fn default(mut self, default: impl Into<T>) -> Self {
|
||||
self.default = Some(default.into());
|
||||
self
|
||||
|
|
|
|||
|
|
@ -106,7 +106,8 @@ where
|
|||
}
|
||||
|
||||
/// Sets the optional default value for the [`VerticalSlider`].
|
||||
/// If set, [`VerticalSlider`] will reset to this value when doubled-clicked, ctrl-clicked, or command-clicked.
|
||||
///
|
||||
/// If set, the [`VerticalSlider`] will reset to this value when ctrl-clicked or command-clicked.
|
||||
pub fn default(mut self, default: impl Into<T>) -> Self {
|
||||
self.default = Some(default.into());
|
||||
self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue