Open gbonline opened 5 years ago
Hi @gbonline,
In your case, You can use displayName
property while setting up the translated text inside the DataForm. For example:
<TKEntityProperty tkPropertyGroupProperties name="name" [displayName]="'new.line' | L">
<TKPropertyEditor tkEntityPropertyEditor type="Text"></TKPropertyEditor>
</TKEntityProperty>
This will work properly on both platforms(iOS
and Android
). Let me know if I am missing something or your case is different.
thanks for answer, but as I wrote the problem is about the attribute name of tag TkPropertyGroup, not the TkEntityProperty. I know TkEntityProperty work well
Hi @gbonline, Can you send us the project or sample one, which can be used for reproducing the problem?
Archivio-demo-raddataform,.zip
Hi, I attached a little project that works on android and fail on ios simulator
Hi, do you have any news about the error?
Please, provide the details below:
Tell us about the problem
On my app "angular based", I use the RadDataForm with fields grouped in some groups. I'm using the NS version 5, with ios platform 5.4.x.
Using dynamic name on TkPropertyGroup the ios app crash without exception! On android all goes well. I need the dynamic name because I need to show translated strings from the Nativescript-localize plugin as [name]="'lbl_name_translated' | L", but the crash happen when the name is dynamic as [name]="component_field" I would like to complete my app with configuration for NS 5! I've no time to upgrade the app to the new version 6!
Which platform(s) does your issue occur on?
_iOS
Please provide the following version numbers that your issue occurs with:
package.json
) nativescript-ui-dataform ^4.0.0tns --version
to fetch it) 5.4.2package.json
)"tns-android"
and"tns-ios"
properties in thepackage.json
) my package.json { "description": "NativeScript Application", "license": "SEE LICENSE INPlease tell us how to recreate the issue in as much detail as possible.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
(You can paste entire code snippets, link to playground demo or attach a runnable project)