mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Improve docs of ui.collapsing
See https://github.com/emilk/egui/issues/4265
This commit is contained in:
@@ -1806,6 +1806,9 @@ impl Ui {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A [`CollapsingHeader`] that starts out collapsed.
|
/// 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>(
|
pub fn collapsing<R>(
|
||||||
&mut self,
|
&mut self,
|
||||||
heading: impl Into<WidgetText>,
|
heading: impl Into<WidgetText>,
|
||||||
|
|||||||
Reference in New Issue
Block a user