Improve docs of `ui.collapsing`

See https://github.com/emilk/egui/issues/4265
This commit is contained in:
Emil Ernerfeldt 2024-03-29 15:58:22 +01:00
parent dfbe118ea4
commit 0a428f0887
1 changed files with 3 additions and 0 deletions

View File

@ -1806,6 +1806,9 @@ impl Ui {
}
/// A [`CollapsingHeader`] that starts out collapsed.
///
/// The name must be unique within the current parent,
/// or you need to use [`CollapsingHeader::id_source`].
pub fn collapsing<R>(
&mut self,
heading: impl Into<WidgetText>,