Open HannesT117 opened 6 years ago
It is not only pipes there seems to be no binding possible at all to
<TKPropertyGroup name="{{ label }}">
So only a hard coded label is possible at the moment, but translations require a proper binding.
@nicHoch confirming this one as not implemented and as binding to the name property is actually crashing the application marking it as a bug. Reproducible in both JS/TS and Angular projects.
Steps to reproduce:
name
property of TKPropertyGroupResult: application will crash or show blank screen
Throwing with:
Cannot read property 'toString' of null, undefined
reproducible with plugin version 3.2.0 and 3.3.0-2017-12-7-3"
Here's a link to playground showing crash on iOS, works fine on Android: https://play.nativescript.org/?template=play-ng&id=HmW2JH&v=6
Did you verify this is a real problem by searching Stack Overflow?
Yes
Tell us about the problem
At the moment, it is possible to use converters / pipes for the displayed name of TKEntityProperties, e.g. with Angular & nativescript-i18n:
<TKEntityProperty name="name" displayName="{{'name' | L}}">
Same thing doesn't work for the TKPropertyGroup. Entering something like the following as name property just gives me a blank screen:
<TKPropertyGroup name="{{'address' | L}}">
For me, this would be a really nice thing to have!
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with: