New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ngx-masonry-layout

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-masonry-layout

Masonry layout for Angular

  • 2.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
decreased by-7.69%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 07 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc