@vks-dev/jquery-split-panes
v1.0.3
Published
A jQuery plugin that manages resizable split panes - VKS package
Maintainers
Readme
@vks-dev/jquery-split-panes
A 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.
Installation
npm install @vks-dev/jquery-split-panesUsage
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'API
Methods
splitPanes(options)- Initialize split panes with optionssplitPanes('adjust')- Adjust the heights of all panessplitPanes('release')- Remove split panes functionality
Options
bottomPadding(default: 10) - Bottom padding for panesminHeight(default: 100) - Minimum height for collapsed panes
Exports
MIN_PANE_CLASS- CSS class name for minimized panes ('sp-minimized')
License
MIT
Copyright
Copyright (c) 2010-2015 Visual Knowledge Share Ltd, All rights reserved.
