-
Extjs pagingtoolbar refresh button hideDev/JavaScript 2014. 2. 7. 15:02
Extjs pagingtoolbar 에서 refresh 버튼을 숨기는 방법은 아래와 같다.
var bbar = Ext.create('Ext.PagingToolbar', {
store: store,
id:'bbar-component',
displayInfo: true,
displayMsg: 'Datanodes {0} - {1} of {2}',
emptyMsg: "No DataNode"
})
bbar.getComponent('refresh').hide();
Extjs pagingtoolbar 에서 버튼 컴포넌트를 가져오는 방법은 아래와 같다.
Ext.getCmp('bbar').getComponent('first');
Ext.getCmp('bbar').getComponent('prev');
Ext.getCmp('bbar').getComponent('next');
Ext.getCmp('bbar').getComponent('last');
Ext.getCmp('bbar').getComponent('refresh');
'Dev > JavaScript' 카테고리의 다른 글
ToolTips not wide enough to see contents (1) 2014.05.23 JavaScript 올림, 반올림, 내림 (0) 2014.04.15 Function Declarations(함수선언) vs Function Expressions(함수표현) (0) 2014.04.09 자바스크립트에서 함수는 first-class object다. (0) 2014.04.02 JavaScript에서 "strict mode"를 사용해야 하는 이유 (0) 2014.04.01 JavaScript 에서 var 사용이 중요한 이유 (0) 2014.03.31 Extjs How to selecting row after store.load() (0) 2014.03.19 Extjs Treepanel: CSS to change default icons (0) 2014.02.12 IE7 이하 버전에서 "'console'이(가) 정의되지 않았습니다." 에러 처리 (0) 2013.03.25 javascript prototype class 사용시 jquery 에서 "this" 사용하는 방법 (0) 2013.03.20