npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-columns-layout

v0.4.16

Published

## How to install

Downloads

51

Readme

Vue Columns Layout

How to install

Set Up Project

You use vue3.0 cli. this project can't use vue 2.

You can create some project with vue3-cli.

$vue create some-project
$cd some-project/

Install Vue Columns Layout with npm.

npm install -s vue-columns-layout

Create columns.js as columns-layout config file in some-project/src.

import Vue from 'vue'
import VueColumnsLayout from 'vue-columns-layout'
import 'vue-columns-layout/dist/vue-columns-layout.css'

import ColumnPageA from './components/ColumnPageA.vue' // of course you can change name and path
import ColumnPageB from './components/ColumnPageB.vue'
import ColumnPageC from './components/ColumnPageC.vue'
...

Vue.use(VueColumnsLayout, {
  pages: {
    ColumnPageA,
    ColumnPageB,
    ColumnPageC,
    ...
  }
})

In some-project/src/main.js, you add import columns.js sentence.

import Vue from 'vue'
import App from './App.vue'
import columns from './columns'

Install is done. You can use <ColumnsLayout> component on any vue file.

Use ColumnsLayout component

Basic usage

<ColumnsLayout ref="cols" :column-width="320"/>

You can add column by addColumn().

mounted () {
  // add column to column-layout
  this.$refs.cols.addColumn({ name: "ColumnPageA" })
}

Methods for column page

You can use those props in Column Page.

export default {
  props: ["columnId", "columns", "addColumn", "removeColumn", "clearColumns", "forwardPage", "backPage", "canBackPage", "dragging", "index"]
}

Column is like browser's tab. Each tab is stack for history of web page. Each column is stack for history of page. Pages are vue components that you create and register on columns.js. Each page is like web page.

addColumn

Type: Function

addColumn is a method add column into columns-layout.

this.addColumn({ name: '<<Page Name>>' }, options)

Options

options = {
  uniqueKey: '<<Unique Key>>' // add unique column with << Unique Key >>
}

removeColumn

Type: Function

removeColumn is a method remove column calling this method.

this.removeColumn(options)

Options

options = {
  recursive: Boolean // delete columns recursively
}

clearColumns

Type: Function

clearColumns is a method to clear all Columns.

this.clearColumns(options)

Options

options = {
  // nothing
}

forwardPage

Type: Function

forwardPage is a method like location.href. this method make page jump into follow page.

this.forwardPage({ name: '<<Page Name>>' }, options)

Options

options = {
  replace: Boolean, // forward page without current history
  deleteHistory: Boolean // forward page without all history
}

backPage

Type: Function

backPage is a method like history.back(). this method make page jump back.

this.backPage(options)

Options

options = {
  // nothing
}

canBackPage

Type: Boolean

canBackPage is a boolean whether this column have previous page. If this column have previous page, return true.

dragging

Type: Boolean

Column is draggable and sortable. If this column is dragged, return true.

index

Type: Number

column index.