File tree 1 file changed +19
-9
lines changed
1 file changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,16 @@ export class SpeedDial extends SpeedDialItemBase {
309
309
}
310
310
} ) ;
311
311
}
312
+ insertChild ( child , index ) {
313
+ if ( child !== this . _fabMainButton && child instanceof SpeedDialItem ) {
314
+ this . prepareItem ( child ) ;
315
+
316
+ this . fabs . splice ( index , 0 , child ) ;
317
+ this . _fabsHolder . insertChild ( child , index ) ;
318
+ } else {
319
+ super . insertChild ( child , index ) ;
320
+ }
321
+ }
312
322
addChild ( child ) {
313
323
// for now we ignore this
314
324
// to make sure we add the view in the property change
@@ -324,15 +334,15 @@ export class SpeedDial extends SpeedDialItemBase {
324
334
super . addChild ( child ) ;
325
335
}
326
336
}
327
- public _addChildFromBuilder ( name : string , value : any ) {
328
- if ( value instanceof SpeedDialItem ) {
329
- value . fabmenu = new WeakRef ( this ) ;
330
- this . fabs . push ( value ) ;
331
- this . _fabsHolder . _addView ( value ) ;
332
- } else {
333
- this . _addView ( value ) ;
334
- }
335
- }
337
+ // public _addChildFromBuilder(name: string, value: any) {
338
+ // if (value instanceof SpeedDialItem) {
339
+ // value.fabmenu = new WeakRef(this);
340
+ // this.fabs.push(value);
341
+ // this._fabsHolder._addView(value);
342
+ // } else {
343
+ // this._addView(value);
344
+ // }
345
+ // }
336
346
get isLeft ( ) {
337
347
return this . rPosition === 'left' ;
338
348
}
You can’t perform that action at this time.
0 commit comments