2.0.6 • Published 6 years ago

ngx-masonry-layout v2.0.6

Weekly downloads
168
License
MIT
Repository
github
Last release
6 years ago

Masonry layout for Angular

Demo

http://crystalui.org/components/masonry-layout

Installation

Install the npm package.

npm i ngx-masonry-layout

Import module:

import {MasonryLayoutModule} from 'ngx-masonry-layout';

@NgModule({
    imports: [MasonryLayoutModule]
})

Usage

myImages = [
	{
		path: 'path_to_image',
		width: natural_width,
		height: natural_height
	}
];
<masonry-layout 
	[max-height]="250"
	[gutter]="4" 
	[images]="myImages"
	(events)="handleMasonryLayoutEvents($event)"></masonry-layout>

Properties

nametypedescription
max-heightnumberMaximum row height.
gutternumberAdds space between item elements (it is recommended to use even numbers).
class-namestring, { key: string: any; }Adds classes for each item. Supports the same syntax as ngClass.
2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.0

7 years ago