Skip to content

No api for getting header cell component after it has been set #1676

@petrixh

Description

@petrixh

In the v14 grid, after setting header row components (like filters) there is no way to get the component after the fact (like clearing it or getting its value).

A workaround is to store them in a local map that will eventually go out of sync or override the Grids default column factory, extend the default column and add:

`

public class MyColumn<T> extends Column<T>{
        private Component headerComponent;

        @Override
	protected void setHeaderComponent(Component component) {
		super.setHeaderComponent(component);
		headerComponent = component;
	}

	public Component getHeaderComponent() {
		return headerComponent;
	}

}`

would be nice to have this in the public API just like we had in the V8 Grid.

Tested with Vaadin 14.0.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions