/ .
- , expand/collapse ?
(demo, ). , List/Grid/, / (, ), :
List
Grid
this._listRef.recomputeRowHeights(indexOfChangedRow) // Clear cached size this._listRef.forceUpdateGrid() // Rerender list with new size
... :-)
CodeSandbox
I was looking for the same function, but I did not find any useful results, as I was looking, maybe this sandbox helps others looking for a similar function in their applications:
The example is used Tablefrom react-virtualizednext to react hooks.
Table
react-virtualized
react hooks
example
I tried to implement the solution, but as soon as I expand the line, the list will change the top scroll position. any clue?
Source: https://habr.com/ru/post/1663533/More articles:The test kitchen does not try to restart on the 2012R2 server - chef-recipeHow can I specify a parameter for POST requests when using APIView with django-rest-swagger - djangoGoogle Flexible Environment Deploy Fail "Ошибка запуска приложения" - google-app-enginein android google vision OCR, how can I determine recognition accuracy - androidSpring - committing an integration transaction in front of the rest of the pipeline - javaПрисоединить массив с блоком изначально - rubySVG marker at a specific point along the path - javascriptLimiting RAM usage in python program - pythonОбновление списка пользовательских форм после инициализации пользовательской формы - vbaCakePHP Recommended syntax for templates (views) - phpAll Articles