2017-10-14 133 views
0

當我附上屏幕截圖時,我需要將roweditor的高度最小化爲gridExtJS - 如何最大限度地減少roweditor的高度?

這裏是rowediting插件的配置:

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

enter image description here

回答

0

您可以添加beforeedit監聽指定爲編輯自定義高度以及編輯器中內容如下:

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

相關問題