File tree Expand file tree Collapse file tree 7 files changed +61
-1
lines changed
containers/default-layout Expand file tree Collapse file tree 7 files changed +61
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,10 @@ export const navItems: INavData[] = [
66
66
name : 'Pagination' ,
67
67
url : '/base/pagination'
68
68
} ,
69
+ {
70
+ name : 'Placeholder' ,
71
+ url : '/base/placeholder'
72
+ } ,
69
73
{
70
74
name : 'Popovers' ,
71
75
url : '/base/popovers'
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { SpinnersComponent } from './spinners/spinners.component';
15
15
import { TablesComponent } from './tables/tables.component' ;
16
16
import { TooltipsComponent } from './tooltips/tooltips.component' ;
17
17
import { TabsComponent } from './tabs/tabs.component' ;
18
+ import { PlaceholdersComponent } from './placeholders/placeholders.component' ;
18
19
19
20
const routes : Routes = [
20
21
{
@@ -83,6 +84,13 @@ const routes: Routes = [
83
84
title : 'Pagination' ,
84
85
} ,
85
86
} ,
87
+ {
88
+ path : 'placeholder' ,
89
+ component : PlaceholdersComponent ,
90
+ data : {
91
+ title : 'Placeholder' ,
92
+ } ,
93
+ } ,
86
94
{
87
95
path : 'popovers' ,
88
96
component : PopoversComponent ,
Original file line number Diff line number Diff line change @@ -17,14 +17,15 @@ import {
17
17
ListGroupModule ,
18
18
NavModule ,
19
19
PaginationModule ,
20
+ PlaceholderModule ,
20
21
PopoverModule ,
21
22
ProgressModule ,
22
23
SharedModule ,
23
24
SpinnerModule ,
24
25
TableModule ,
25
26
TabsModule ,
26
27
TooltipModule ,
27
- UtilitiesModule ,
28
+ UtilitiesModule
28
29
} from '@coreui/angular' ;
29
30
30
31
import { IconModule } from '@coreui/icons-angular' ;
@@ -41,6 +42,7 @@ import { CollapsesComponent } from './collapses/collapses.component';
41
42
import { ListGroupsComponent } from './list-groups/list-groups.component' ;
42
43
import { NavsComponent } from './navs/navs.component' ;
43
44
import { PaginationsComponent } from './paginations/paginations.component' ;
45
+ import { PlaceholdersComponent } from './placeholders/placeholders.component' ;
44
46
import { PopoversComponent } from './popovers/popovers.component' ;
45
47
import { ProgressComponent } from './progress/progress.component' ;
46
48
import { SpinnersComponent } from './spinners/spinners.component' ;
@@ -67,6 +69,7 @@ import { BaseRoutingModule } from './base-routing.module';
67
69
ListGroupModule ,
68
70
IconModule ,
69
71
ListGroupModule ,
72
+ PlaceholderModule ,
70
73
ProgressModule ,
71
74
SpinnerModule ,
72
75
TabsModule ,
@@ -96,6 +99,7 @@ import { BaseRoutingModule } from './base-routing.module';
96
99
TablesComponent ,
97
100
TooltipsComponent ,
98
101
TabsComponent ,
102
+ PlaceholdersComponent ,
99
103
] ,
100
104
} )
101
105
export class BaseModule { }
Original file line number Diff line number Diff line change
1
+ < p cPlaceholder cPlaceholderColor ="danger " cPlaceholderSize ="lg " cCol xs ="6 "> placeholders works!</ p >
2
+ < p cPlaceholder animation ="glow ">
3
+ < span cPlaceholder cPlaceholderColor ="success " cPlaceholderSize ="lg " cCol xs ="6 " > </ span >
4
+ </ p >
Original file line number Diff line number Diff line change
1
+ import { ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+
3
+ import { PlaceholdersComponent } from './placeholders.component' ;
4
+
5
+ describe ( 'PlaceholdersComponent' , ( ) => {
6
+ let component : PlaceholdersComponent ;
7
+ let fixture : ComponentFixture < PlaceholdersComponent > ;
8
+
9
+ beforeEach ( async ( ) => {
10
+ await TestBed . configureTestingModule ( {
11
+ declarations : [ PlaceholdersComponent ]
12
+ } )
13
+ . compileComponents ( ) ;
14
+ } ) ;
15
+
16
+ beforeEach ( ( ) => {
17
+ fixture = TestBed . createComponent ( PlaceholdersComponent ) ;
18
+ component = fixture . componentInstance ;
19
+ fixture . detectChanges ( ) ;
20
+ } ) ;
21
+
22
+ it ( 'should create' , ( ) => {
23
+ expect ( component ) . toBeTruthy ( ) ;
24
+ } ) ;
25
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import { Component , OnInit } from '@angular/core' ;
2
+
3
+ @Component ( {
4
+ selector : 'app-placeholders' ,
5
+ templateUrl : './placeholders.component.html' ,
6
+ styleUrls : [ './placeholders.component.scss' ]
7
+ } )
8
+ export class PlaceholdersComponent implements OnInit {
9
+
10
+ constructor ( ) { }
11
+
12
+ ngOnInit ( ) : void {
13
+ }
14
+
15
+ }
You can’t perform that action at this time.
0 commit comments