小编Gum*_*ror的帖子

工具栏外观中的extjs按钮

嘿,我有一个小问题,但我似乎无法找到.

当我在extjs工具栏中放置一个按钮时,它会显示一个默认的外观(就像任何Windows工具栏选项一样)

我如何让它看起来像一个表单中的按钮?

extjs toolbar button

6
推荐指数
1
解决办法
1万
查看次数

在Ext Js视口中动态加载内容(面板)

基本上我正在研究这个问题,我有许多组件与dinamic东西,在服务器端用PHP编写.

根据用户的不同,我的组件将根据用户的角色进行更改.

所以我需要知道如何做到这一点的任何方式/示例/信息.

1-我使用了EXTJS的加载功能,但它清楚地说我不会加载脚本只有纯文本.

2-我使用了eval()但是这个方法有点害怕,就像这个例子crate layout component(static)

var contentPanel = new Ext.Panel({
                frame: true,
                style: {marginTop: '10px'},
                height: 315,
                border: true,
                bodyBorder: false,
                layout: 'fit',
                id: 'contentPanel'
            });


            var mainPanel = new Ext.Panel({
                title: 'Panel Principal',
                id: 'mainPanel',
                border: true,
                frame: true,
                width: '50%',
                style: {margin: '50px auto 0 auto'},
                height: 400,
                renderTo: Ext.getBody(),
                items: [
                        {
                            html: '<a href="#" onClick="requestContent(\'panel1\');">Panel 1</a>'
                        },
                        {
                            html: '<a href="#" onClick="requestContent(\'panel2\');">Panel 2</a>'
                        },
                        contentPanel

                ]
            })
Run Code Online (Sandbox Code Playgroud)

并使用写在服务器上的js文件更新布局的内容

function receiveContent(options, success, response)
        {



            var …
Run Code Online (Sandbox Code Playgroud)

components extjs

5
推荐指数
1
解决办法
3万
查看次数

标签 统计

extjs ×2

button ×1

components ×1

toolbar ×1