Skip to content

Commit 7ca8dee

Browse files
committed
feat(resize): add start/stop/resize event triggers
1 parent 6121eb6 commit 7ca8dee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/jquery.gridster.js

+6
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,8 @@
11331133
if (this.options.resize.start) {
11341134
this.options.resize.start.call(this, event, ui, this.$resized_widget);
11351135
}
1136+
1137+
this.$el.trigger('gridster:resizestart');
11361138
};
11371139

11381140

@@ -1169,6 +1171,8 @@
11691171
if (this.options.resize.stop) {
11701172
this.options.resize.stop.call(this, event, ui, this.$resized_widget);
11711173
}
1174+
1175+
this.$el.trigger('gridster:resizestop');
11721176
};
11731177

11741178
/**
@@ -1256,6 +1260,8 @@
12561260
this.options.resize.resize.call(this, event, ui, this.$resized_widget);
12571261
}
12581262

1263+
this.$el.trigger('gridster:resize');
1264+
12591265
this.resize_last_sizex = size_x;
12601266
this.resize_last_sizey = size_y;
12611267
};

0 commit comments

Comments
 (0)