Reputation: 65
I'm creating a dashboard with drag and drop. The main purpose of that dashboard is that the user can customize the cards and their position on the grid. So, for that funcionality I wanna get the columns and row to dinamically fill the empty cells with placeholders for the drag and drop. There's a way to get the CSS Grid properties via Javascript?
Upvotes: 0
Views: 614
Reputation: 3049
this is how to access the css grid property
yourElement.style.grid="250px / auto auto auto"
check this link, it contains the full explanation: https://www.w3schools.com/CSSref/pr_grid.asp
Upvotes: 1