Threaded View

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    4
    Vote Rating
    0
    joe_montanab is on a distinguished road

      0  

    Question How to define an object in Component Config

    How to define an object in Component Config


    I'm currently using an Ext.Map view, but this applies to any view really. In the component config area for Ext.Map there is a mapOptions setting. The text for the value shows [object]..., when I click on it I get a blank box. I try to add my object in there and it sets my value as a quoted string in code view.

    What I put in:

    { centered: 45.622469,-122.666933 }

    What I expect to show up in code view:

    Code:
    ...
        config: {
            mapOptions: { centered: 45.622469,-122.666933 }
        }
    ...
    But here is what I actually get:

    Code:
    ...
        config: {
            mapOptions: '{ centered: 45.622469,-122.666933 }\n'
        }
    ...
    How can I set the value for mapOptions (or any object in the component config area) and have it take it as an object instead of a literal string?

    Thanks!
    -Joe
    Last edited by joe_montanab; 11 Feb 2012 at 1:45 PM. Reason: comment for second code block

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi