1.0.0 • Published 7 years ago

simple-columns v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Simple Columns

Simple helper package to put a collection of items into columns.

The creation purpose of this package was that I wanted to order my items vertically with -webkit-column-count but failed. With this package, -webkit-column-count work perfectly fine.

Installation

npm install simple-columns --save-dev

Methods

NameTypeParametersReturns
columnifyInArraysFunction(items=Array, cols=Number)Array of Arrays with items
columnifyOrderFunction(items=Array, cols=Number)Array with items ordered by column

Example