diff --git a/src/@fuse/components/masonry/index.ts b/src/@fuse/components/masonry/index.ts new file mode 100644 index 00000000..ac978a78 --- /dev/null +++ b/src/@fuse/components/masonry/index.ts @@ -0,0 +1 @@ +export * from '@fuse/components/card/public-api'; diff --git a/src/@fuse/components/masonry/masonry.component.html b/src/@fuse/components/masonry/masonry.component.html new file mode 100644 index 00000000..4b0a6719 --- /dev/null +++ b/src/@fuse/components/masonry/masonry.component.html @@ -0,0 +1,3 @@ +
+ fuse-masonry is a basic Masonry layout component to show items in Masonry grid layout. Since it doesn't use any other third party library or complex calculations to + keep everything smooth and fast; +
++ If you don't need to mix and match different width items and don't need to sort items based on their heights, fuse-masonry will do the job for you and it will do it very smoothly. +
+
+ Exported as: fuseMasonry
+
Name | +Description | +Default | +
---|---|---|
+ @Input()
+ columnsTemplate: TemplateRef
+ |
+ + Column template for masonry component to lay out. + | +
+ undefined
+ |
+
+ @Input()
+ columns: number
+ |
+ + Number of columns to create + | +
+ undefined
+ |
+
+ @Input()
+ items: any[]
+ |
+ + Items to distribute into columns + | +
+ []
+ |
+
This component doesn't have any public methods.
+ ++ fuse-masonry doesn't provide a default template or styling to the items. You can think of it as a helper function but in a component form: +
+ +
+ fuse-masonry doesn't provide a way of changing the column count depending on breakpoints but this can easily be handled by
+ combining fuse-masonry
with FuseMediaWatcherService
:
+