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
429 stars 82 forks source link

[grid-pro] Expose public method to start editing a specific cell #898

Open web-padawan opened 4 years ago

web-padawan commented 4 years ago

There is a private method grid._startEdit(cell, column).

As requested in vaadin/vaadin-grid-pro-flow#54 it might make sense to expose it publicly.

Exposed method should take care of calling _stopEdit for previously edited cell, if any. So it's more than just a matter of removing _ but also needs adding new tests / demo.

tomivirkki commented 4 years ago

Note that grid cells can't be referenced from outside so the public API should accept an item and a column as parameters