[MGNLUI-4538] Implement more and better column renderers for the tabular views Created: 28/May/18 Updated: 26/Jun/19 Resolved: 08/Aug/18 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0 |
| Type: | New Feature | Priority: | Neutral |
| Reporter: | Aleksandr Pchelintcev | Assignee: | Roman Kovařík |
| Resolution: | Done | Votes: | 0 |
| Labels: | v8-grid, vaadin8 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Date of First Response: | |||||||||
| Epic Link: | UI framework: grids and browsing | ||||||||
| Sprint: | Kromeriz 157, Kromeriz 158 | ||||||||
| Story Points: | 8 | ||||||||
| Description |
|
Replacing the former ColumnFormatter abstraction, we now have column renderers provided by Vaadin 8. We currently don't have many stock renderers though. We need to do at least:
User story
Acceptance criteria:
|
| Comments |
| Comment by Aleksandr Pchelintcev [ 23/Jul/18 ] |
|
I have been looking at this topic a bit closer lately and have made some findings:
In order to customise the rendered value, Grid seems to use the converter-like utility aka 'presentationProvider' (see https://vaadin.com/api/com/vaadin/ui/Grid.Column.html). This looks more like a current ColumnFormatter. The renderers in turn could complement the presentation providers to add some light-weight interactivity (see ClickableRenderer etc). For instance, with renderers we could replace our current tag column with an implementation that doesn't require to use TokenField component to be rendered with the cells. Re: databinding.
Instead we probably should eventually use the public <V> Grid.Column<T,V> addColumn(ValueProvider<T,V> valueProvider) API and definition should provide the value provider implementation class (by default such class should be configured to smth like 'simplePropertyValueProvider' which merely gets a property value according to the current datasource logic). |
| Comment by Roman Kovařík [ 05/Sep/18 ] |
|
We still use plain HTML for column icons, Vaadin doesn't support font renderers out of the box, see https://github.com/vaadin/framework/issues/7278. |