You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, renderers can by supplied in a view controller using the new @Supply annotation. Method annotated with @Supply returns a value that will be passed as a input parameter to a method defined by subject.
In the example below, the returned ComponentRenderer instance is used as an input parameter for Column#setRenderer(Renderer):
From now, columns can be defined without property attribute. In this case, EmptyValueProvider is set for a column and can be replaced by a Renderer later on, e.g.:
Description
For now, we cannot change formatting of column values in DataGrid like in classic UI:
Solution
The following renderers can be defined declaratively in XML:
localDateRenderer
localDateTimeRenderer
numberRenderer
For example:
Alternatively, renderers can by supplied in a view controller using the new
@Supply
annotation. Method annotated with@Supply
returns a value that will be passed as a input parameter to a method defined bysubject
.In the example below, the returned
ComponentRenderer
instance is used as an input parameter forColumn#setRenderer(Renderer)
:From now, columns can be defined without
property
attribute. In this case,EmptyValueProvider
is set for a column and can be replaced by aRenderer
later on, e.g.:Result (for all code above):
For QA:
Probably wait for https://youtrack.jmix.io/issue/JST-4176/Support-new-Supply-annotation
The text was updated successfully, but these errors were encountered: