File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 3131 autogrow_cols : false ,
3232 autogenerate_stylesheet : true ,
3333 avoid_overlapped_widgets : true ,
34+ auto_init : true ,
3435 serialize_params : function ( $w , wgd ) {
3536 return {
3637 col : wgd . col ,
8990 * @param {Boolean } [options.avoid_overlapped_widgets] Avoid that widgets loaded
9091 * from the DOM can be overlapped. It is helpful if the positions were
9192 * bad stored in the database or if there was any conflict.
93+ * @param {Boolean } [options.auto_init] Automatically call gridster init
94+ * method or not when the plugin is instantiated.
9295 * @param {Function } [options.serialize_params] Return the data you want
9396 * for each widget in the serialization. Two arguments are passed:
9497 * `$w`: the jQuery wrapped HTMLElement, and `wgd`: the grid
141144 this . generated_stylesheets = [ ] ;
142145 this . $style_tags = $ ( [ ] ) ;
143146
144- this . init ( ) ;
147+ this . options . auto_init && this . init ( ) ;
145148 }
146149
147150 Gridster . generated_stylesheets = [ ] ;
You can’t perform that action at this time.
0 commit comments