Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the masonry options properties? #160

Open
Code4Zelda opened this issue Sep 6, 2021 · 2 comments
Open

What are the masonry options properties? #160

Code4Zelda opened this issue Sep 6, 2021 · 2 comments

Comments

@Code4Zelda
Copy link

i notice in the docs it just shows transition options in the option object?

const masonryOptions = {
transitionDuration: 0
};

Do you guys have more options or does any thing can go inside of it.

@afram
Copy link
Collaborator

afram commented Sep 6, 2021

Hi @Code4Zelda those options should be the same as the options you'd pass into Masonry.
https://masonry.desandro.com/options.html

@doichev-kostia
Copy link

`export interface MasonryOptions {
columnWidth?: number | string | HTMLElement | null;
itemSelector?: string;
gutter?: number | string;
percentPosition?: boolean;
horizontalOrder?: boolean;
stamp?: string;
fitWidth?: boolean;
originLeft?: boolean;
originTop?: boolean;
containerStyle?: Object;
transitionDuration?: number | string;
resize?: boolean;
initLayout?: boolean;
}

export interface MasonryPropTypes {
enableResizableChildren?: boolean;
disableImagesLoaded?: boolean;
updateOnEachImageLoad?: boolean;
onImagesLoaded?: (instance: any) => void;
options?: MasonryOptions;
className?: string;
elementType?: string;
style?: Object;
onLayoutComplete?: (instance: any) => void;
onRemoveComplete?: (instance: any) => void;
}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants