A jQuery plugin that manages resizable split panes - VKS package
npm install @vks-dev/jquery-split-panesA jQuery plugin that manages resizable split panes.
Note: Only vertical resizing is supported at the moment.
This is a VKS-specific package wrapping the split panes jQuery plugin.
``bash`
npm install @vks-dev/jquery-split-panes
`javascript
import '@vks-dev/jquery-split-panes';
import { MIN_PANE_CLASS } from '@vks-dev/jquery-split-panes';
import $ from 'jquery';
// Initialize split panes
$('.split-panes').splitPanes({
bottomPadding: 10,
minHeight: 100
});
// Adjust panes
$('.split-panes').splitPanes('adjust');
// Release/destroy
$('.split-panes').splitPanes('release');
// Use the exported constant
console.log(MIN_PANE_CLASS); // 'sp-minimized'
`
- splitPanes(options) - Initialize split panes with optionssplitPanes('adjust')
- - Adjust the heights of all panessplitPanes('release')
- - Remove split panes functionality
- bottomPadding (default: 10) - Bottom padding for panesminHeight
- (default: 100) - Minimum height for collapsed panes
- MIN_PANE_CLASS` - CSS class name for minimized panes ('sp-minimized')
MIT
Copyright (c) 2010-2015 Visual Knowledge Share Ltd, All rights reserved.