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 256
256
self .rowHeight = rowHeight;
257
257
};
258
258
259
+ self .setMaxRowsHandler = function (maxRows ) {
260
+ self .maxRows = maxRows;
261
+ };
262
+
259
263
self .directionchangeHandler = () => {
260
264
this .rtl = getDocumentDir () === ' rtl' ;
261
265
this .compact ();
270
274
this .eventBus .$on (' setDraggable' , self .setDraggableHandler );
271
275
this .eventBus .$on (' setResizable' , self .setResizableHandler );
272
276
this .eventBus .$on (' setRowHeight' , self .setRowHeightHandler );
277
+ this .eventBus .$on (' setMaxRows' , self .setMaxRowsHandler );
273
278
this .eventBus .$on (' directionchange' , self .directionchangeHandler );
274
279
this .eventBus .$on (' setColNum' , self .setColNum )
275
280
283
288
this .eventBus .$off (' setDraggable' , self .setDraggableHandler );
284
289
this .eventBus .$off (' setResizable' , self .setResizableHandler );
285
290
this .eventBus .$off (' setRowHeight' , self .setRowHeightHandler );
291
+ this .eventBus .$off (' setMaxRows' , self .setMaxRowsHandler );
286
292
this .eventBus .$off (' directionchange' , self .directionchangeHandler );
287
293
this .eventBus .$off (' setColNum' , self .setColNum );
288
294
this .interactObj .unset () // destroy interact intance
Original file line number Diff line number Diff line change 206
206
this .eventBus .$emit (" setColNum" , this .colNum );
207
207
}
208
208
this .onWindowResize ();
209
- }
209
+ },
210
+ maxRows : function () {
211
+ this .eventBus .$emit (" setMaxRows" , this .maxRows );
212
+ },
210
213
},
211
214
methods: {
212
215
layoutUpdate () {
You can’t perform that action at this time.
0 commit comments