Socket
Book a DemoInstallSign in
Socket

vue-splitter-comp

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-splitter-comp

[![Build Status](https://travis-ci.org/rmp135/vue-splitter-comp.svg?branch=master)](https://travis-ci.org/rmp135/vue-splitter-comp)

1.1.1
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

vue-splitter-comp

Build Status

For splitting a view in two!

Demo

Installing

Install from npm.

yarn add vue-splitter-comp

Import the component.

import VueSplitter from "vue-splitter-comp"

Include it in the components section of the vue component.

components: {
  VueSplitter
}

Use it in the html, populating the left-pane and right-pane slots.

<vue-splitter :margin="20">
  <div slot="left-pane">
    <div>Some left content here.</div>
  </div>
  <div slot="right-pane">
    <div>Some right content here.</div>
  </div>
</vue-splitter>

The margin prop can be used to set the percentage that the dragger should not exceed on either side. Defaults to 10%.

The resize event will be fired when the dragger is moved.

Using

The dragger can be dragged left and right to move the panes. It can be clicked to reset to 50%.

Styles

The following classes may be overridden to apply the style you would like.

The component is wrapped in a .vue-splitter-comp class.

Each pane has a .splitter-pane class, with a .left-pane and .right-pane class respectively.

The splitter bar has a .splitter class.

FAQs

Package last updated on 02 Mar 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.