vaadin / flow-components

Java counterpart of Vaadin Web Components
101 stars 66 forks source link

API or extension point to use a custom column #1316

Open oluwasayo opened 6 years ago

oluwasayo commented 6 years ago

It is currently impossible to use a custom Column subclass because Grid exposes no API such as addColumn(AbstractColumn column).

Legioth commented 6 years ago

For what purpose would you want to add a custom column? While it might be good to offer the possibility of doing so, most such cases actually point to some other higher-level feature that would also be good to consider.

oluwasayo commented 6 years ago

If you have a custom element extending Vaadin.GridColumnElement and want to use it on the server side with all the Flow goodies.

manolo commented 6 years ago

That is the case of vaadin-crud-edit-column, it's a custom column (extending vaadin-grid-column) used in crud to add an edit button to the grid, firing an edit event with the item when clicked