first commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
:host ::ng-deep .block-ui-wrapper {
|
||||
background: rgba(255, 249, 249, 0.5) !important;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
|
||||
import { MediaobjectsComponent } from './mediaobjects.component';
|
||||
|
||||
describe('MediaobjectsComponent', () => {
|
||||
let component: MediaobjectsComponent;
|
||||
let fixture: ComponentFixture<MediaobjectsComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ MediaobjectsComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(MediaobjectsComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,62 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { NgBlockUI, BlockUI } from 'ng-block-ui';
|
||||
|
||||
@Component({
|
||||
selector: 'app-mediaobjects',
|
||||
templateUrl: './mediaobjects.component.html',
|
||||
styleUrls: ['./mediaobjects.component.css']
|
||||
})
|
||||
|
||||
export class MediaobjectsComponent implements OnInit {
|
||||
|
||||
@BlockUI('leftAlignedMediaObjects') blockUILeftAlignedMediaObjects: NgBlockUI;
|
||||
@BlockUI('leftMediaWithRightText') blockUILeftMediaWithRightText: NgBlockUI;
|
||||
|
||||
public breadcrumb: any;
|
||||
|
||||
options = {
|
||||
close: true,
|
||||
expand: true,
|
||||
minimize: true,
|
||||
reload: true
|
||||
};
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
this.breadcrumb = {
|
||||
'mainlabel': 'Media Objects',
|
||||
'links': [
|
||||
{
|
||||
'name': 'Home',
|
||||
'isLink': true,
|
||||
'link': '/dashboard/sales'
|
||||
},
|
||||
{
|
||||
'name': 'Component',
|
||||
'isLink': true,
|
||||
'link': '#'
|
||||
},
|
||||
{
|
||||
'name': 'Media Objects',
|
||||
'isLink': false
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
reloadLeftAlignedMediaObjects() {
|
||||
this.blockUILeftAlignedMediaObjects.start('Loading..');
|
||||
|
||||
setTimeout(() => {
|
||||
this.blockUILeftAlignedMediaObjects.stop();
|
||||
}, 2500);
|
||||
}
|
||||
|
||||
reloadLeftMediaWithRightText() {
|
||||
this.blockUILeftMediaWithRightText.start('Loading..');
|
||||
setTimeout(() => {
|
||||
this.blockUILeftMediaWithRightText.stop();
|
||||
}, 2500);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user