Socket
Book a DemoInstallSign in
Socket

@pderas/vue2-foldable

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pderas/vue2-foldable

A vue 2 component to show / hide content

1.0.0
latest
Source
npmnpm
Version published
Maintainers
3
Created
Source

Vue Loader

A vue.js component to allow a section to collapse and expand with an ainimation.

How to initialize Vue Loader

Vue foldable is built as a vue plugin. It can be initialized just as the Vue documentation states.

import Foldable from "@pderas/vue2-foldable";

Vue.use(Foldable, {
    peekabooHeight:  0, // default
});

Usage

Creation

Vue foldable is easily created, and allows for a slot to be inserted.

<foldable :collapsed="false">
    <div slot-scope>

    </div>
</foldable>

Properties

PropertyRequiredTypeDefaultDescription
collapsedtrueBooleann/aIf the section is collapsed or not.
heightfalseNumber0The height of foldable.
minHeightfalseNumber0The minimum height to show of the content.

License

This project is covered under the MIT License. Feel free to use it wherever you like.

Keywords

vue2

FAQs

Package last updated on 28 Feb 2019

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.