com.vaadin.flow.component.grid.
Class ColumnPathRenderer<SOURCE>
Type Parameters:
SOURCE
- the object model type
All Implemented Interfaces:
Renderer for columns that doesn't use a renderer function for rendering its
contents (only the value from the object model). In such cases, a
renderer
function is not needed on the client-side, only the
path
property.
Author:
Vaadin Ltd.
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionColumnPathRenderer
(String property, ValueProvider<SOURCE, ?> provider) Creates a new renderer based on the property and the value provider for that property.
-
Method Summary
-
Constructor Details
-
ColumnPathRenderer
Creates a new renderer based on the property and the value provider for that property.
Parameters:
property
- the property nameprovider
- the value provider for the property
-
-
Method Details
-
render
public Rendering<SOURCE> render(Element container, DataKeyMapper<SOURCE> keyMapper, String rendererName) Description copied from class:
Renderer
Registers a renderer function with the given name to the given container element. Creates the setup to handle rendering of individual data items as requested by the renderer function invocation.
Specified by:
render
in classRenderer<SOURCE>
Parameters:
container
- the element which accepts the renderer function on the client.keyMapper
- mapper used internally to fetch items by key and to provide keys for given items.rendererName
- name of the renderer function the container element acceptsReturns:
the context of the rendering, that can be used by the components to provide extra customization
-