2017-10-14 14 views
0

스크린 샷을 첨부 했으므로 roweditor의 높이를 grid으로 최소화해야합니다. 당신은 다음과 같이 정의 편집기 높이뿐만 아니라 편집기에서 요소를 할당 beforeedit에게 리스너를 추가 할 수 있습니다ExtJS - 노 젓는 사람의 키를 최소화하는 방법은 무엇입니까?

ptype   : 'rowediting', 
clicksToMoveEditor: 1, 
saveBtnText  : 'Kaydet', 
cancelBtnText : 'İptal', 
errorsText  : 'Hata', 
errorSummary : false, 
autoCancel  : false 

enter image description here

답변

0

: 여기

rowediting 플러그인의 구성입니다

listeners: { 
     beforeedit: function (plugin) { 
      //set height of editor 
      plugin.editor.setHeight(200); 
      // set height of each element within editor 
      plugin.editor.items.each(function (b) { 
       b.setHeight(100); 
      }) 
     } 
    }, 

실습 예제 : https://fiddle.sencha.com/#view/editor&fiddle/28d5