Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getter for presentationProvider in Grid.Column (#10323) #12060

Merged
merged 3 commits into from
Dec 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions server/src/main/java/com/vaadin/ui/Grid.java
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,18 @@ public ValueProvider<T, V> getValueProvider() {
return valueProvider;
}

/**
* Gets the function to get presentations from the value of data in this
* column, based on the row item.
*
* @return the presentation provider function
*
* @since
*/
public ValueProvider<V, ?> getPresentationProvider() {
return presentationProvider;
}

/**
* Sets whether the user can sort this column or not. Whether the column
* is actually sortable after {@code setSortable(true)} depends on the
Expand Down