removePane

Description

Remove a pane from the window.

binaryWindow.removePane(sashId);

Parameters

NameTypeDescription
sashIdstringSash ID of the pane to be removed

Returns

Type: void

Code snippets

JavaScript

<div id="container"></div>
const binaryWindow = new BinaryWindow();

binaryWindow.mount(document.getElementById('container'));

binaryWindow.removePane('sash-id');

React

import { useEffect, useRef } from 'react';
import { Window } from 'bwin-react';

function App() {
  const windowRef = useRef(null);

  useEffect(() => {
    windowRef.current.removePane('sash-id');
  }, []);

  return <Window ref={windowRef} />;
}