如何为在可视编辑器中创建的对象设置复杂的配置值

时间:2021-06-07 00:17:53

I'm using Sencha Architect.

我正在使用Sencha Architect。

I can't find a way to specify config value precisely enough in config editor.

我找不到在配置编辑器中准确指定配置值的方法。

Couple of examples:

几个例子:

1) I have Panel, and I want to set it's layout like that:

1)我有Panel,我想设置它的布局:

layout: {
    type: 'vbox'
    align : 'stretch',
    pack  : 'start',
}

But using config editor I cannot proceed further than setting it's type 'vbox'. How to set it's align and pack properties?

但是使用配置编辑器我不能继续设置它的类型'vbox'。如何设置它的对齐和包装属性?

2) Combobox allows using simple array as store initializer. And it looks pretty convenient - for example if values are fixed, we could just write ... store: ['constant', 'massive']... But again, if I use config editor, I can set as store only preliminarily created object of type Store.

2)Combobox允许使用简单数组作为存储初始化器。它看起来很方便 - 例如,如果值是固定的,我们可以写...存储:['常数','大量'] ......但是,如果我使用配置编辑器,我可以初步设置为存储创建了Store类型的对象。

The question is, is there any way to get more freedom in setting config values without losing convenience of vusial editor?

问题是,有没有办法在不失去vusial编辑器的便利性的情况下更*地设置配置值?

1 个解决方案

#1


1  

  1. align and pack are direct property of panel. Select the panel and you can find them on search box at right inspector.

    对齐和包装是面板的直接属性。选择面板,您可以在右侧检查器的搜索框中找到它们。

  2. unfortunately you cant set a object in every property of sencha, some properties has a button where you can set a type: string, object, number.

    遗憾的是,你不能在sencha的每个属性中设置一个对象,一些属性有一个按钮,你可以在其中设置一个类型:字符串,对象,数字。

#1


1  

  1. align and pack are direct property of panel. Select the panel and you can find them on search box at right inspector.

    对齐和包装是面板的直接属性。选择面板,您可以在右侧检查器的搜索框中找到它们。

  2. unfortunately you cant set a object in every property of sencha, some properties has a button where you can set a type: string, object, number.

    遗憾的是,你不能在sencha的每个属性中设置一个对象,一些属性有一个按钮,你可以在其中设置一个类型:字符串,对象,数字。