NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.94k forks source link

Change default CDK overlay container for NG-ZORRO components #6926

Open MhdFeras opened 3 years ago

MhdFeras commented 3 years ago

What problem does this feature solve?

changing the default CDK overlay container

What does the proposed API look like?

we can change the CDK OverlayContainer by pass provider like this

providers: [ { provide: OverlayContainer, useClass: AppOverlayContainer} ]

can we pass similar provider to ng-zorro just like NZ_ICONS, NZ_ICON_DEFAULT_TWOTONE_COLOR ...

providers: [
        { provide: NZ_OVERLAY_CONTAINER, useClass: AppOverlayContainer }, //this will pass the AppOverlayContainer to be used as provider for OverlayContainer inside ng-zorro module
        { provide: NZ_ICON_DEFAULT_TWOTONE_COLOR, useValue: '#00ff00' }, 
        { provide: NZ_ICONS, useValue: icons }
]
zawars commented 2 years ago

Any update ?

thekhegay commented 8 months ago

@simplejason any news?

sai-world commented 1 month ago

Any Update?