File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 256256 self .rowHeight = rowHeight;
257257 };
258258
259+ self .setMaxRowsHandler = function (maxRows ) {
260+ self .maxRows = maxRows;
261+ };
262+
259263 self .directionchangeHandler = () => {
260264 this .rtl = getDocumentDir () === ' rtl' ;
261265 this .compact ();
270274 this .eventBus .$on (' setDraggable' , self .setDraggableHandler );
271275 this .eventBus .$on (' setResizable' , self .setResizableHandler );
272276 this .eventBus .$on (' setRowHeight' , self .setRowHeightHandler );
277+ this .eventBus .$on (' setMaxRows' , self .setMaxRowsHandler );
273278 this .eventBus .$on (' directionchange' , self .directionchangeHandler );
274279 this .eventBus .$on (' setColNum' , self .setColNum )
275280
283288 this .eventBus .$off (' setDraggable' , self .setDraggableHandler );
284289 this .eventBus .$off (' setResizable' , self .setResizableHandler );
285290 this .eventBus .$off (' setRowHeight' , self .setRowHeightHandler );
291+ this .eventBus .$off (' setMaxRows' , self .setMaxRowsHandler );
286292 this .eventBus .$off (' directionchange' , self .directionchangeHandler );
287293 this .eventBus .$off (' setColNum' , self .setColNum );
288294 this .interactObj .unset () // destroy interact intance
Original file line number Diff line number Diff line change 234234 this .eventBus .$emit (" setColNum" , this .colNum );
235235 }
236236 this .onWindowResize ();
237- }
237+ },
238+ maxRows : function () {
239+ this .eventBus .$emit (" setMaxRows" , this .maxRows );
240+ },
238241 },
239242 methods: {
240243 layoutUpdate () {
You can’t perform that action at this time.
0 commit comments