Is there any way to run API function in the start?
I hope to use API function (here sizeColumnsToFit()) in the first page, but no success. The function itself works well, but it only works when it's connected to click event.
I added await grid.run_api('sizeColumnsToFit()', wp) in the main function, but it didn't work...
Is there any way to run API function in the start?
I hope to use API function (here
sizeColumnsToFit()
) in the first page, but no success. The function itself works well, but it only works when it's connected to click event. I addedawait grid.run_api('sizeColumnsToFit()', wp)
in the main function, but it didn't work...Here is my example.