2014-06-06 3 views
1

그리드에 검색 플러그인을 사용하고 싶습니다. 검색 플러그인에 대한 가져 오기가 필요합니다. 문서에서 찾을 수있는 것은 : Ext.ux.grid.Search입니다.Ext.ux.grid.Search가 Extjs에서 작동하지 않습니다. 4.2

Ext.require([ 
    'Ext.data.*', 
    'Ext.grid.*', 
    'Ext.tree.*', 
    'Ext.ux.grid.FiltersFeature', 
    'Ext.toolbar.Paging', 
    'Ext.ux.grid.Search' 
]); 

그럼 내가 이해하는 한 테이블의 플러그인에 추가해야합니다. 이처럼 :

plugins: [{ 
    ptype: 'bufferedrenderer', 
     trailingBufferZone: 20, // Keep 20 rows rendered in the table behind scroll 
     leadingBufferZone: 50 // Keep 50 rows rendered in the table ahead of scroll 
    }, 
    new Ext.ux.grid.Search({ 
     iconCls:'icon-zoom' 
     ,readonlyIndexes:['country'] 
     ,disableIndexes:['pctChange'] 
     ,minChars:1 
     ,autoFocus:true 
     ,mode:'local' // to filter on local; for remote add mode:'remote' 
     ,width: '50' 
    }) 
], 

그러나 내가 오류는 다음과 같습니다 라인

new Ext.ux.grid.Search({

어떤 아이디어에 대한

Uncaught TypeError: undefined is not a function

?

답변

0

플러그인의 이름에서 이전 버전이나 포크 중 하나를 사용할 수 있도록 내가 작성한 플러그인이라고 추측합니다.

최근에 Ext 4.x 용 플러그인을 업데이트했으며 배포 방법이 Sencha Cmd에서 인정하는 패키지로 배포되기 때문에 쉽고 간단합니다.

here을 참조하십시오.

관련 문제