Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

splitpanes

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

splitpanes

A Vue.js reliable, simple and touch-ready panes splitter / resizer

  • 3.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
126K
decreased by-2.56%
Maintainers
1
Weekly downloads
 
Created

What is splitpanes?

The splitpanes npm package is a Vue.js component that allows you to create resizable, split views or panes within your application. It is useful for creating layouts where you need to divide the screen into multiple resizable sections.

What are splitpanes's main functionalities?

Basic Split Pane

This code demonstrates a basic usage of the splitpanes component with two resizable panes. The panes can be resized by dragging the divider between them.

<template>
  <splitpanes>
    <pane>Pane 1</pane>
    <pane>Pane 2</pane>
  </splitpanes>
</template>

<script>
import { Splitpanes, Pane } from 'splitpanes';
import 'splitpanes/dist/splitpanes.css';

export default {
  components: {
    Splitpanes,
    Pane
  }
};
</script>

Nested Split Panes

This code demonstrates how to nest splitpanes within each other to create more complex layouts. The outer splitpanes component contains two panes, with the first pane containing another splitpanes component.

<template>
  <splitpanes>
    <pane>
      <splitpanes>
        <pane>Nested Pane 1</pane>
        <pane>Nested Pane 2</pane>
      </splitpanes>
    </pane>
    <pane>Pane 2</pane>
  </splitpanes>
</template>

<script>
import { Splitpanes, Pane } from 'splitpanes';
import 'splitpanes/dist/splitpanes.css';

export default {
  components: {
    Splitpanes,
    Pane
  }
};
</script>

Horizontal Split Panes

This code demonstrates how to create horizontal split panes by adding the 'horizontal' attribute to the splitpanes component. The panes can be resized horizontally by dragging the divider.

<template>
  <splitpanes horizontal>
    <pane>Pane 1</pane>
    <pane>Pane 2</pane>
  </splitpanes>
</template>

<script>
import { Splitpanes, Pane } from 'splitpanes';
import 'splitpanes/dist/splitpanes.css';

export default {
  components: {
    Splitpanes,
    Pane
  }
};
</script>

Other packages similar to splitpanes

Keywords

FAQs

Package last updated on 28 Oct 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc