프로그래밍/ExtJS(32)
-
Combo 에서 list width를 내용에 따라 늘일경우
matchFieldWidth : ture || false 다음 속성을 true로 주면 됨
2018.06.21 -
Grid Columns 기본 틀
columns: { defaults :{ menuDisabled: true, sortable: false},items:[{ xtype:'actioncolumn',width:40,items:[{ tooltip:'다운로드',cls:'videoclip',glyph: 'e930@icomoon', dataIndex: 'fileurl', handler: function(view, rowIndex, colIndex, item, e, record, row) { this.fireEvent('onProgramDownload', view, rowIndex, colIndex, item, e, record, row); }}]}, { text: '파일', dataIndex: 'fileurl',hidden:true }, { tex..
2018.04.26 -
Ext.Ajax.request MASK관련
Ext.Ajax.request 에서 해당 Form 이나 요청하면서버응답을 기다리는 중/ mask를 입히려고 하다가 해당 특수 parameter를 넣기로 함 defaultLoadMask: true 넣으면 Ext.Ajax.on('beforerequest',function(e,src){ if(src && src.defaultLoadMask === true){ Ext.getBody().mask(loadText, 'loading'); } }); Ext.Ajax.on('requestcomplete',function(e, response, src){ if(src && src.defaultLoadMask === true){ Ext.getBody().unmask(); } }); Ext.Ajax.on('requestexc..
2018.03.30 -
View Load 시 해당 Scroll 위치를 이동하지 않도록
viewConfig: { preserveScrollOnRefresh: true} https://docs.sencha.com/extjs/6.2.0/classic/Ext.view.AbstractView.html#cfg-preserveScrollOnRefresh 다음 함수를 참고하면 됨
2018.03.30 -
Grid 키 이벤트 제거하다..꼼수..
EBS 프로젝트중에.. Store로 데이터를 불러와서 입력할수 있는 폼을 만드는중..Dataview를 이용하지 않고.Grid 확장하여 Template 로 보여주는 식으로 하다보니...입력폼에 textarea에서 위, 아래 키가 인식하지 않는 오류가 나옴...Shift 클릭수 위아래로 움직이니.. Row select 이벤트가.... -_-;; 이리저리 뒤지다 확장해보고 새로 만들다 보고 하다.onRender 부분에 RowselectionModel init 하는 부분을 override 하여 제거 해버림....ㅋㅋ;; 된다.. 꼼수.. ㅎㅎ
2014.09.04 -
ExtJs 모바일 접속시 다른 URL로 이동
요새 대세는 모바일이다.코드는? Ext.isiPad = navigator.userAgent.match('iPad') != null;Ext.isiPhone = navigator.userAgent.match('iPhone') != null;Ext.Android = navigator.userAgent.match('Android') != null;Ext.isMobileDevice = Ext.isiPad || Ext.isiPhone || Ext.Android;if(Ext.Android){//alert('안드로이드에서 접속');} 이런식으로 하면 될 듯.. 기본값은 내장객체 함수에 값이 들어오니 그거 분석해서 이리저리 나누면 될 듯한데;;요새 기기들이 다양해서.. 해상도 마다 또 다르게 만들어야 하는건지.. 짜증이..
2012.12.26