1. #1
    Sencha User 12ftguru's Avatar
    Join Date
    May 2007
    Posts
    22
    Vote Rating
    1
    12ftguru is on a distinguished road

      0  

    Default Setting Ext.Container Defaults

    Setting Ext.Container Defaults


    Congrats on the new release of the designer!

    I am currently fiddling about with it and I have run into a small hitch: I have a panel with a table layout and normally to pad out the cells I would do something like:

    defaults: {
    bodyStyle:'padding:20px'
    }

    However, when I try to click on "[object]..." in the Ext Designer for Ext.Container -> Defaults I get a text area (with no bottom border)and when I type things in the field and click away, I get syntax errors from the designer. I have tried entering:

    bodyStyle: 'padding:20px;'
    [bodyStyle: 'padding:20px;']

    both of these return errors. I also tried:

    {bodyStyle: 'padding:20px;'}

    which didn't return an error, but also did not pad out the cells.

    What is the expected syntax for this kind of "[object]..." area (or am I missing something more basic)?

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,226
    Vote Rating
    121
    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


    The expected syntax is simply a JSON String

    {defaults: 'padding: 20px'} works for me.

    We currently have an open issue to fix the fact that it gets converted to [Object object] after completing the edit.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User 12ftguru's Avatar
    Join Date
    May 2007
    Posts
    22
    Vote Rating
    1
    12ftguru is on a distinguished road

      0  

    Default


    Cool. That's probably what I am running into. This is a really great application. Thanks for all the hard work.

Thread Participants: 1