removePane
Description
Remove a pane from the window.
binaryWindow.removePane(sashId);
Parameters
Name | Type | Description |
---|---|---|
sashId | string | Sash 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} />;
}