chore: Update TabPanel closable doc. (#672)

This commit is contained in:
Jason Lee 2025-02-28 15:40:33 +08:00 committed by GitHub
parent 42c82bfc31
commit 7eaac7b171
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,6 +72,8 @@ pub struct TabPanel {
pub(crate) active_ix: usize,
/// If this is true, the Panel closable will follow the active panel's closable,
/// otherwise this TabPanel will not able to close
///
/// This is used for Dock to limit the last TabPanel not able to close, see [`super::Dock::new`].
pub(crate) closable: bool,
tab_bar_scroll_handle: ScrollHandle,