Skip to content

Commit 73b4950

Browse files
committed
feat: placeholders
1 parent 2882c43 commit 73b4950

File tree

7 files changed

+61
-1
lines changed

7 files changed

+61
-1
lines changed

src/app/containers/default-layout/_nav.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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'

src/app/views/base/base-routing.module.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { SpinnersComponent } from './spinners/spinners.component';
1515
import { TablesComponent } from './tables/tables.component';
1616
import { TooltipsComponent } from './tooltips/tooltips.component';
1717
import { TabsComponent } from './tabs/tabs.component';
18+
import { PlaceholdersComponent } from './placeholders/placeholders.component';
1819

1920
const 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,

src/app/views/base/base.module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

3031
import { IconModule } from '@coreui/icons-angular';
@@ -41,6 +42,7 @@ import { CollapsesComponent } from './collapses/collapses.component';
4142
import { ListGroupsComponent } from './list-groups/list-groups.component';
4243
import { NavsComponent } from './navs/navs.component';
4344
import { PaginationsComponent } from './paginations/paginations.component';
45+
import { PlaceholdersComponent } from './placeholders/placeholders.component';
4446
import { PopoversComponent } from './popovers/popovers.component';
4547
import { ProgressComponent } from './progress/progress.component';
4648
import { 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
})
101105
export class BaseModule {}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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>

src/app/views/base/placeholders/placeholders.component.scss

Whitespace-only changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
});
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

0 commit comments

Comments
 (0)