Skip to main content

move_block_to_edge

Function move_block_to_edge 

Source
pub(crate) async fn move_block_to_edge(
    state: &AppState,
    tab_id: &str,
    block_id: &str,
    __arg3: (LayoutEdge, Option<f64>),
) -> Result<bool, String>
Expand description

Move block_id’s pane in tab_id to be a band down or across the layout’s edge, in srv’s tree and the window’s mirror (the movetoedge action; the edge rides in the action’s position). Not applied, and Ok(false), when the block is in no pane there or the layout refuses (the root, a chip strip, no middle).