-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
de5ced7
commit c94cc66
Showing
5 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
apps/playground/src/app/components/popovers/popovers/popovers-routing.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule } from '@angular/router'; | ||
|
||
import { ComponentRouteInfo } from '../../../shared/component-info/component-route-info'; | ||
|
||
import { PopoversComponent } from './popovers.component'; | ||
|
||
const routes: ComponentRouteInfo[] = [ | ||
{ | ||
path: '', | ||
component: PopoversComponent, | ||
data: { | ||
name: 'Popover', | ||
icon: 'caret-down', | ||
library: 'popovers', | ||
}, | ||
}, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule], | ||
}) | ||
export class PopoversRoutingModule { | ||
public static routes = routes; | ||
} |
24 changes: 24 additions & 0 deletions
24
apps/playground/src/app/components/popovers/popovers/popovers.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<sky-page layout="blocks"> | ||
<sky-page-content> | ||
<button | ||
class="sky-btn sky-btn-primary sky-margin-inline-default" | ||
type="button" | ||
[skyPopover]="myPopover0" | ||
> | ||
Popover demo on click | ||
</button> | ||
|
||
<button | ||
class="sky-btn sky-btn-link" | ||
type="button" | ||
[skyPopover]="myPopover0" | ||
[skyPopoverTrigger]="'mouseenter'" | ||
> | ||
Popover demo on hover | ||
</button> | ||
|
||
<sky-popover popoverTitle="Playground popover" #myPopover0> | ||
The content of a popover can be text, HTML, or Angular components. | ||
</sky-popover> | ||
</sky-page-content> | ||
</sky-page> |
17 changes: 17 additions & 0 deletions
17
apps/playground/src/app/components/popovers/popovers/popovers.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { | ||
ChangeDetectionStrategy, | ||
Component, | ||
ViewEncapsulation, | ||
} from '@angular/core'; | ||
import { SkyPageModule } from '@skyux/pages'; | ||
import { SkyPopoverModule } from '@skyux/popovers'; | ||
|
||
@Component({ | ||
selector: 'app-popovers', | ||
templateUrl: './popovers.component.html', | ||
encapsulation: ViewEncapsulation.None, | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
standalone: true, | ||
imports: [SkyPopoverModule, SkyPageModule], | ||
}) | ||
export class PopoversComponent {} |
12 changes: 12 additions & 0 deletions
12
apps/playground/src/app/components/popovers/popovers/popovers.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
|
||
import { PopoversRoutingModule } from './popovers-routing.module'; | ||
import { PopoversComponent } from './popovers.component'; | ||
|
||
@NgModule({ | ||
imports: [CommonModule, PopoversRoutingModule, PopoversComponent], | ||
}) | ||
export class PopoversModule { | ||
public static routes = PopoversRoutingModule.routes; | ||
} |