1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    5
    Vote Rating
    0
    P1648317361 is on a distinguished road

      0  

    Default 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
    Code:
    items: [{
    fieldLabel: this.firstName,
    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:
    fieldLabel: 'this.firstName' vs fieldLabel: this.firstName
    Note: If you have a locale example based on Sensha Architect that would be better.

    Thank you.

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,365
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    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

Thread Participants: 1