
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
multi-split-pane
Advanced tools
var split = new MultiSplitPane(el, opts)
Create a new MultiSplitPane
rooted in empty DOM element el
. Supported options:
orientation
: either MultiSplitPane.VERTICAL
or MultiSplitPane.HORIZONTAL
scheduleRender
: called the split pane needs to redraw its internal structure. Callback receives a single function which it can either invoke immediately or schedule to call with e.g. requestAnimationFrame()
.onPaneResize
: a function that will be called when panes are resizedattachWidget
/detachWidget
: callback functions for attaching/detaching child widgets added to the split pane. Signature is (parentElement, widget)
. Default is to assume widget
is a DOM element and perform e.g. parentElement.appendChild(widget)
.setWidgetBounds
: callback function used to resize a widget; signature is (widget, x, y, width, height)
. Default is to assume widget
is a DOM element and set its dimensions directly.split.layout()
Schedule a layout operation. Use the scheduleRender
constructor operation to control when layout actually occurs.
split.layoutImmediately()
Layout the split pane immediately. It's not normally necessary to call this function manually.
split.setOrientation(orientation)
orientation
is one of MultiSplitPane.VERTICAL
or MultiSplitPane.HORIZONTAL
.
split.setPaneSizes(sizes)
split.addSplit(ratio, [widget])
split.removeWidgetAtIndex(ix)
split.getWidgetAtIndex(ix)
split.setWidgetAtIndex(ix, widget)
The root split-pane
class can be substituted by whatever you want; it is not set by the constructor.
.split-pane > .split-pane-divider {
position: absolute;
background-color: black;
}
.split-pane > .split-pane-ghost {
background-color: #ff3300;
opacity: 0.7;
}
.split-pane.horizontal > .split-pane-divider {
left: 0; right: 0;
height: 8px;
cursor: row-resize;
}
.split-pane.vertical > .split-pane-divider {
top: 0; bottom: 0;
width: 8px;
cursor: col-resize;
}
© 2014 Jason Frame [ @jaz303 / jason@onehackoranother.com ]
Released under the ISC license.
FAQs
DOM split pane supporting multiple splits
We found that multi-split-pane demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.