vaadin / web-components

A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
https://vaadin.com/docs/latest/components
452 stars 83 forks source link

[grid] Add event to notify when the grid is visually ready #1950

Open vlukashov opened 6 years ago

vlukashov commented 6 years ago

Description

As a developer I want to run some code after the grid contents is rendered. It would be awesome if there was a JS method returning a promise that resolves when all pending internal grid operations are completed, or a DOM event (or both). Currently the gird does not provide an API for that.

Example use cases:

Currently the grid exposes the notifying loading property, but that is not a good proxy for visual completeness:

grid-loaded-event

Expected outcome

Browsers Affected

tomivirkki commented 6 years ago

This should already be achievable by assigning CSS animations for the cell content and then listening to the animationstart events.