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

Style empty cells #934

Open
whistleEmil opened this issue Jan 13, 2025 · 1 comment
Open

Style empty cells #934

whistleEmil opened this issue Jan 13, 2025 · 1 comment

Comments

@whistleEmil
Copy link

Hey. I can't figure out a way to style the empty cells. I want to add a small piece of markup, so users get an indication when hovering the cell, that they can click it to add an item.

Is this possible today? Thanks!

@AndeYashwanth
Copy link
Contributor

I had the same usecase. I had to calculate the position, width height of each grid item using the number of rows, cols, margin, grid width and height and then store them in a list. These you can get from grid options. Then in html I wrote ngfor to create boxes with those dimensions using styling.
We have 4x4 grid so we get 16 cells with margin in between.

Image

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