-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor/overlay components #684
Conversation
@Inject(NB_WINDOW) protected window, | ||
@Inject(NB_DOCUMENT) protected document, | ||
@Inject(PLATFORM_ID) protected platformId: Object, | ||
protected layoutDirectionService: NbLayoutDirectionService, | ||
protected scrollService: NbLayoutScrollService, | ||
protected rulerService: NbLayoutRulerService, | ||
protected scrollTop: NbRestoreScrollTopHelper, | ||
@Optional() protected overlayContainer: NbOverlayContainerAdapter, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly fine
* Basic menu items, will be passed to the internal NbMenuComponent. | ||
* */ | ||
@Input('nbContextMenu') | ||
set _items(items: NbMenuItem[]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_
@@ -10,6 +10,9 @@ import { NbDynamicToAddComponent } from '../shared/dynamic.component'; | |||
@Component({ | |||
selector: 'nb-popover-custom-component', | |||
templateUrl: './popover-custom-component.component.html', | |||
styles: [`nb-layout-column { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new lines
@@ -10,6 +10,10 @@ import { Component } from '@angular/core'; | |||
@Component({ | |||
selector: 'nb-popover-showcase', | |||
templateUrl: './popover-showcase.component.html', | |||
styles: [`:host { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new lines
Please read and mark the following check list before creating a pull request:
Short description of what this resolves:
Refactor popover, context-menu, and searches, implement with overlays.
Remove capability add something to layout top. All dynamic layout components have to work with overlays now.
BREAKING CHANGE:
appendToLayoutTop
andclearLayoutTop
methods was removed fromNbThemeService
. Instead of this methods, you have to useNbOverlayService
. It's the extension of @angular/cdk overlays, so, check documentation first of all.Basic usage of overlays may look like this:
Closes #683, closes #664, closes #668.