Skip to main content

place_block

Function place_block 

Source
pub(crate) async fn place_block(
    state: &AppState,
    tab_id: &str,
    block_id: &str,
    placement: Placement,
) -> Result<(), String>
Expand description

Place block_id in its tab’s layout: srv applies the placement to its own tree, then queues the matching action for the window showing the tab, under the same action id and with the leaf’s node id, so the window’s mirror builds the tree srv stored.