Reference Source
import {Masonry} from '@adobe/coral-spectrum'
public class | source

MasonryFixedCenteredLayout

Extends:

MasonryLayoutMasonryColumnLayout → MasonryFixedCenteredLayout

Layout with fixed width centered items. The width of the items is defined with the columnwidth attribute.

See:

Example:

JS constructor
new Coral.Masonry.FixedCenteredLayout();
<coral-masonry layout="fixed-centered" columnwidth="300">

Inherited Summary

From class MasonryLayout
public static

Defines the name of the Layout

public

Layout name.

public

Removes all layout-specific attributes, style, data and event listeners from the masonry and its items.

public

Removes the item from the control of the layout.

public

itemAt(x: number, y: number): Coral.Masonry.Item

Returns the item at the given position.

public

layout()

Lays out the masonry items according to the implementation.

public

Adds the item to the control of the layout again.

From class MasonryColumnLayout
public
public

detach(item: *)

public

itemAt(x: *, y: *): *

public

layout(secondTry: *)

public

reattach(item: *)