@mintjamsinc/vue-split

1.0.1 • Public • Published

vue-split

A reusable Split component for Vue.js 2.x used by webtop applications.

Installation

npm install --save-dev @mintjamsinc/vue-split

Usage

<Split :onResize="onResize" min="20%" :initial="splitPercent" :show="[showFilter, true]">
  <template v-slot:pane1>
    <!-- Defines the pane1 content of your application -->
  </template>
  <template v-slot:pane2>
    <!-- Defines the pane2 content of your application -->
  </template>
</Split>
import Split from '@mintjamsinc/vue-split';

export default {
  components: {
    Split: Split,
  },
  data() {
    return {
      splitPercent: '28%',
      showFilter: true,
    };
  },
  methods: {
    onResize(percent) {
      window.Webtop.local.set('splitPercent', percent + '%');
    },
  },
}

License

MIT

Copyright (c) 2021 MintJams Inc.

Readme

Keywords

Package Sidebar

Install

npm i @mintjamsinc/vue-split

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

155 kB

Total Files

5

Last publish

Collaborators

  • kenichif
  • mintjams-bot