Skip to content

How to update grid after hiding some divs? #100

@Nickonimus

Description

@Nickonimus

Hi
I can't make grid update after hiding some elements (divs.display = none) , how to deal with it?

Activity

changed the title [-]How to change gride size from buttons?[/-] [+]How to update grid after changes?[/+] on Nov 20, 2023
changed the title [-]How to update grid after changes?[/-] [+]How to update grid after hiding some divs?[/+] on Nov 21, 2023
Jackky90

Jackky90 commented on Nov 22, 2023

@Jackky90

Hi! Try syncElements() method on grid, like grid.syncElements()

Nickonimus

Nickonimus commented on Nov 22, 2023

@Nickonimus
Author

Grid updates with grid.syncElements() but only after .remove() of items, so can't figure out how to turn grid back after search.

Nickonimus

Nickonimus commented on Nov 22, 2023

@Nickonimus
Author

@malangfox
Hi, seems like this problem has presence only with JustifiedGrid, tested on MasonryGrid and it reupdates immediately. Can you please check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @daybrush@Jackky90@Nickonimus

        Issue actions

          How to update grid after hiding some divs? · Issue #100 · naver/egjs-grid