edit and update data

This commit is contained in:
2019-11-28 22:25:52 +01:00
committed by smuddy
parent 6de7de7224
commit 8aeffc3c8f
31 changed files with 341 additions and 50 deletions

View File

@@ -0,0 +1,3 @@
<div class="row">
<ng-content></ng-content>
</div>

View File

@@ -0,0 +1,6 @@
.row {
display: flex;
flex-direction: row-reverse;
flex-wrap: wrap;
width: 100%;
}

View File

@@ -0,0 +1,25 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {ButtonRowComponent} from './button-row.component';
describe('ButtonRowComponent', () => {
let component: ButtonRowComponent;
let fixture: ComponentFixture<ButtonRowComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ButtonRowComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ButtonRowComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,16 @@
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-button-row',
templateUrl: './button-row.component.html',
styleUrls: ['./button-row.component.less']
})
export class ButtonRowComponent implements OnInit {
constructor() {
}
ngOnInit() {
}
}

View File

@@ -0,0 +1,14 @@
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ButtonRowComponent} from './button-row.component';
@NgModule({
declarations: [ButtonRowComponent],
exports: [ButtonRowComponent],
imports: [
CommonModule
]
})
export class ButtonRowModule {
}

View File

@@ -1,4 +1,4 @@
<div [class.padding]="padding" class="card">
<div class="heading" *ngIf="heading">{{heading}}</div>
<div *ngIf="heading" class="heading">{{heading}}</div>
<ng-content></ng-content>
</div>