Results 1 to 2 of 2

Thread: How to define a view property based on a loaded variable ?

  1. #1
    Sencha Premium User
    Join Date
    Jun 2018
    Posts
    16
    Vote Rating
    0
      0  

    Default How to define a view property based on a loaded variable ?

    Hello all,

    I Defining 2 class :
    - MyApp.labels.Labels
    - MyApp.view.products.Products

    1- in Labels.js, I defined a property theTitle: 'someStartingTitle'
    1 - In Products.js, I have a panel with a title : MyApp.labels.Labels.theTitle

    In the init function of my application.js, I load a new js (with a theTitle : 'updatedTitle' to override the Labels class. I override it in the callback and I add my mainclass to the viewport.

    My problem : My products panel title is still 'someStartingTitle'. But in console, MyApp.labels.Labels.theTitle is good : 'updatedTitle'...


    I'm disappointed. The title of my products panel seems to have been set when the class was loaded. Not when I use it ???

    I didn't find infos about that...

    Somebody to explain to me what happens ?

    Thank you ;o)

    I have an application which load a js to overide a singleton class "MyApp.labels.Labels" based on the language chosen by user. So the new overriden

  2. #2
    Ext Team Member
    Join Date
    Sep 2017
    Posts
    624
    Answers
    3
    Vote Rating
    -303
      0  

    Default

    Hello, sorry for your troubles. I have shared this with the support team. They will look into this and get back with you at their earliest convenience. Thank you so much for your patience!

    Michele

Similar Threads

  1. Replies: 1
    Last Post: 4 Oct 2013, 4:17 PM
  2. Define variable name dynamically
    By eaglefox12 in forum Ext: Q&A
    Replies: 3
    Last Post: 26 Apr 2013, 11:38 AM
  3. Define custom property type? Property scope?
    By hfridland in forum Sencha Architect 2.x: Help & Discussions
    Replies: 0
    Last Post: 11 Jun 2012, 8:14 PM
  4. Find a defined View based on custom property
    By meander365 in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 28 May 2012, 12:35 PM
  5. Define global Variable
    By blade226 in forum Ext: Q&A
    Replies: 1
    Last Post: 23 Mar 2012, 4:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •