useVirtualLayout()
function useVirtualLayout(model): VirtualReactLayoutBinding;Connect stable React refs to the framework-neutral virtual layout adapter.
Parameters
model
Returns
The three refs explained in the layout-elements guide.
Related examples
- Simple PrimitivesreactThis example builds a list from the adapter's lower-level model, layout, range, and item primitives instead of its high-level list binding.
- Nested ContainerreactThis example separates the native scroll owner from the element that contains the virtual range. Content can appear before the list while core still measures the nested offset and publishes the correct geometry.
- Window ScrollreactThis example uses the browser window as the native scroll owner while the virtual range remains nested inside ordinary page content.