first commit
This commit is contained in:
11
src/app/content/ngbbootstrap/callout/callout.component.css
Normal file
11
src/app/content/ngbbootstrap/callout/callout.component.css
Normal file
@@ -0,0 +1,11 @@
|
||||
:host ::ng-deep .block-ui-wrapper {
|
||||
background: rgba(255, 249, 249, 0.5) !important;
|
||||
}
|
||||
|
||||
.d-flex {
|
||||
display: center !important;
|
||||
}
|
||||
|
||||
.align-items-center {
|
||||
align-items: center!important;
|
||||
}
|
||||
1406
src/app/content/ngbbootstrap/callout/callout.component.html
Normal file
1406
src/app/content/ngbbootstrap/callout/callout.component.html
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
|
||||
import { CalloutComponent } from './callout.component';
|
||||
|
||||
describe('CalloutComponent', () => {
|
||||
let component: CalloutComponent;
|
||||
let fixture: ComponentFixture<CalloutComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ CalloutComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(CalloutComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
62
src/app/content/ngbbootstrap/callout/callout.component.ts
Normal file
62
src/app/content/ngbbootstrap/callout/callout.component.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { NgBlockUI, BlockUI } from 'ng-block-ui';
|
||||
|
||||
@Component({
|
||||
selector: 'app-callout',
|
||||
templateUrl: './callout.component.html',
|
||||
styleUrls: ['./callout.component.css']
|
||||
})
|
||||
export class CalloutComponent implements OnInit {
|
||||
|
||||
@BlockUI('basicCallouts') blockUIBasicCallouts: NgBlockUI;
|
||||
@BlockUI('rightBorderedCallouts') blockUIRightBorderedCallouts: NgBlockUI;
|
||||
|
||||
public breadcrumb: any;
|
||||
|
||||
options = {
|
||||
close: true,
|
||||
expand: true,
|
||||
minimize: true,
|
||||
reload: true
|
||||
};
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
this.breadcrumb = {
|
||||
'mainlabel': 'Callout',
|
||||
'links': [
|
||||
{
|
||||
'name': 'Home',
|
||||
'isLink': true,
|
||||
'link': '/dashboard/sales'
|
||||
},
|
||||
{
|
||||
'name': 'Component',
|
||||
'isLink': true,
|
||||
'link': '#'
|
||||
},
|
||||
{
|
||||
'name': 'Callout',
|
||||
'isLink': false
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
reloadBasicCallouts() {
|
||||
this.blockUIBasicCallouts.start('Loading..');
|
||||
|
||||
setTimeout(() => {
|
||||
this.blockUIBasicCallouts.stop();
|
||||
}, 2500);
|
||||
}
|
||||
reloadRightBorderedCallouts() {
|
||||
this.blockUIRightBorderedCallouts.start('Loading..');
|
||||
|
||||
setTimeout(() => {
|
||||
this.blockUIRightBorderedCallouts.stop();
|
||||
}, 2500);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user