File tree Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Expand file tree Collapse file tree 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 {
309309 }
310310 } ) ;
311311 }
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+ }
312322 addChild ( child ) {
313323 // for now we ignore this
314324 // to make sure we add the view in the property change
@@ -324,15 +334,15 @@ export class SpeedDial extends SpeedDialItemBase {
324334 super . addChild ( child ) ;
325335 }
326336 }
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+ // }
336346 get isLeft ( ) {
337347 return this . rPosition === 'left' ;
338348 }
You can’t perform that action at this time.
0 commit comments