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

Prop to force chronological order #27

Open
Neesh774 opened this issue Mar 16, 2023 · 1 comment
Open

Prop to force chronological order #27

Neesh774 opened this issue Mar 16, 2023 · 1 comment

Comments

@Neesh774
Copy link

Is it possible for a prop in the XMasonry component that forces left-to-right chronological order? Or perhaps a clone that accepts only XBlock components with width=1, so there's no issue with weird widths that don't match up.

@nikitaeverywhere
Copy link
Owner

Hello!

I'm not sure I understand, but if you go to the demo app and will be clicking "Add random card" many times under "Cards Demo", you'll see how cards are adding "in the chronological order". Ignore cards with width=2, as you can easily restrict it in the code.

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

2 participants