1.0.0 • Published 5 years ago

@pderas/vue2-foldable v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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.