Skip to main content

tear_off_into_floater

Function tear_off_into_floater 

Source
async fn tear_off_into_floater(
    state: &AppState,
    block_id: &str,
    source_tab_id: &str,
    source_ws_id: &str,
) -> Result<(String, String), String>
Expand description

Tear the block off into a fresh floating workspace + tab (reuses the exact saga the drag tear-off uses: CreateWorkspace → CreateTab → MoveBlock). Returns the new workspace’s and tab’s ids.