View Full Version : Setting Ext.Container Defaults

31 Mar 2010, 8:04 AM
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: {

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)?

31 Mar 2010, 8:08 AM
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.

31 Mar 2010, 8:11 AM
Cool. That's probably what I am running into. This is a really great application. Thanks for all the hard work.