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[] = [
6666 name : 'Pagination' ,
6767 url : '/base/pagination'
6868 } ,
69+ {
70+ name : 'Placeholder' ,
71+ url : '/base/placeholder'
72+ } ,
6973 {
7074 name : 'Popovers' ,
7175 url : '/base/popovers'
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { SpinnersComponent } from './spinners/spinners.component';
1515import { TablesComponent } from './tables/tables.component' ;
1616import { TooltipsComponent } from './tooltips/tooltips.component' ;
1717import { TabsComponent } from './tabs/tabs.component' ;
18+ import { PlaceholdersComponent } from './placeholders/placeholders.component' ;
1819
1920const routes : Routes = [
2021 {
@@ -83,6 +84,13 @@ const routes: Routes = [
8384 title : 'Pagination' ,
8485 } ,
8586 } ,
87+ {
88+ path : 'placeholder' ,
89+ component : PlaceholdersComponent ,
90+ data : {
91+ title : 'Placeholder' ,
92+ } ,
93+ } ,
8694 {
8795 path : 'popovers' ,
8896 component : PopoversComponent ,
Original file line number Diff line number Diff line change @@ -17,14 +17,15 @@ import {
1717 ListGroupModule ,
1818 NavModule ,
1919 PaginationModule ,
20+ PlaceholderModule ,
2021 PopoverModule ,
2122 ProgressModule ,
2223 SharedModule ,
2324 SpinnerModule ,
2425 TableModule ,
2526 TabsModule ,
2627 TooltipModule ,
27- UtilitiesModule ,
28+ UtilitiesModule
2829} from '@coreui/angular' ;
2930
3031import { IconModule } from '@coreui/icons-angular' ;
@@ -41,6 +42,7 @@ import { CollapsesComponent } from './collapses/collapses.component';
4142import { ListGroupsComponent } from './list-groups/list-groups.component' ;
4243import { NavsComponent } from './navs/navs.component' ;
4344import { PaginationsComponent } from './paginations/paginations.component' ;
45+ import { PlaceholdersComponent } from './placeholders/placeholders.component' ;
4446import { PopoversComponent } from './popovers/popovers.component' ;
4547import { ProgressComponent } from './progress/progress.component' ;
4648import { SpinnersComponent } from './spinners/spinners.component' ;
@@ -67,6 +69,7 @@ import { BaseRoutingModule } from './base-routing.module';
6769 ListGroupModule ,
6870 IconModule ,
6971 ListGroupModule ,
72+ PlaceholderModule ,
7073 ProgressModule ,
7174 SpinnerModule ,
7275 TabsModule ,
@@ -96,6 +99,7 @@ import { BaseRoutingModule } from './base-routing.module';
9699 TablesComponent ,
97100 TooltipsComponent ,
98101 TabsComponent ,
102+ PlaceholdersComponent ,
99103 ] ,
100104} )
101105export 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