chore: add document for actions

This commit is contained in:
2025-07-05 08:33:40 +07:00
parent 9bb784652d
commit 122dbaf693
8 changed files with 84 additions and 6 deletions

View File

@@ -17,7 +17,15 @@ pub mod panel;
pub mod stack_panel;
pub mod tab_panel;
actions!(dock, [ToggleZoom, ClosePanel]);
actions!(
dock,
[
/// Zoom the current panel
ToggleZoom,
/// Close the current panel
ClosePanel
]
);
pub enum DockEvent {
/// The layout of the dock has changed, subscribers this to save the layout.