-
19 Nov 2012 7:34 PM #1
Setting Locale
Setting Locale
Hi Sencha,
I'm experimenting using your Sensha Architect, however that documents/samples that you have are all based on manual programming and not on the Architect. I find it hard to follow especially if I'm going to do a full time programming based on Sensha Architect.
Currently I'm trying to do your static and dynamic locale setting example. The first one I did was to work on your most basic approach which is adding a script tag in app.html to define which locale to use but that was not enough for me as I want to be able to customize most of my labels to a certain locale.
My problem is I'm not able to follow this example:
http://docs.sencha.com/ext-js/4-1/#!...utch-form.html
How can you set this.firstName is Sensha Architect in which the fieldLabel of textfield will not treat it as a string? when I add it to the property fieldLabel of textfield the only available option is string? Sensha Architect treats it as a text to the textfield and not a pass by value reference?Code:items: [{ fieldLabel: this.firstName,
Note: If you have a locale example based on Sensha Architect that would be better.Code:fieldLabel: 'this.firstName' vs fieldLabel: this.firstName
Thank you.
-
26 Nov 2012 6:55 AM #2
Architect treats everything in the property grid as a literal (string, number, boolean, etc). If you would like to use JavaScript expressions you can place these in code via an event handler or in an override.
Aaron Conran
@aconran
Sencha Architect Development Team


Reply With Quote