本文介绍了LiveSearchGridPanel的ExtJs xtype是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图将LiveSearchGridPanel以及网格和滑块添加到Panel中.我已经能够找到网格和滑块的xtype,但是找不到LiveSearchGridPanel的xtype. getXType返回未定义,并且getXTypes没有帮助.谢谢

I have been trying to include a LiveSearchGridPanel into a Panel along with a grid and a slider. I have been able to find the xtype for grid and slider but cannot find the xtype for LiveSearchGridPanel. getXType returns undefined and getXTypes is not helpful. Thanks

推荐答案

这是一个UX组件,我们必须在app.js中也包含视图文件的路径.

It is a UX component we have to include the path of the view file also in our app.js.

在下面添加以在您的应用程序中包含ux组件:例如ux.Router

Add below to include a ux component in your app : eg ux.Router

Ext.Loader.setConfig({
    enabled: true,
    paths: {
        'Ext.ux.Router': 'lib/Router.js'
    }
});

然后在我们的应用程序中使用..

And then using in our app..

Ext.application({
  name: 'App',
  autoCreateViewport: true,
  requires: [
    'Ext.ux.Router'
  ],
  controllers: [
    'Home', 
    'Users'
  ],
  views: [
    'Viewport',
    'user.List',
    'user.Form'
  ],
  routes: {
    '/': 'home#index',
    'users': 'users#list',
    'users/:id/edit': 'users#edit'
  }
});

这篇关于LiveSearchGridPanel的ExtJs xtype是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 22:53