Answer the question
In order to leave comments, you need to log in
How to find empty space in js grid?
There is such a panel with widgets. Used vue grid layout .
All widgets are different sizes.
The number of columns is 24. At the
top there are buttons that add widgets.
From the documentation, it is proposed to calculate the coordinates of the added widget as follows:
x: (this.selectedWidgets.length * 2) % (this.colNum || 12),
y: (this.selectedWidgets.length + (this.colNum || 12)),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question