Przeglądaj źródła

sticky header raised high enough to cover dashboard componenets

tags/2.037
Patrick Sun 5 lat temu
rodzic
commit
0a81702400
4 zmienionych plików z 12 dodań i 6 usunięć
  1. +5
    -0
      src/app/app.component.scss
  2. +3
    -2
      src/app/auth/auth.component.html
  3. +2
    -2
      src/app/auth/auth.component.ts
  4. +2
    -2
      src/app/auth/dist/auth.component.js

+ 5
- 0
src/app/app.component.scss Wyświetl plik

@@ -24,4 +24,9 @@
display: block;
background-color: rgb(229, 230, 218);
box-shadow : 0px 0px 2px 0px #d6d2d2
}

.appbar,
.k-appbar-sticky{
z-index: 1000;
}

+ 3
- 2
src/app/auth/auth.component.html Wyświetl plik

@@ -6,7 +6,7 @@
<legend class="k-form-legend">Login to Supercredit</legend>
<kendo-formfield [showErrors]="'initial'">
<kendo-label [for]="email" text="Email"></kendo-label>
<input formControlName="email" kendoTextBox #email required />
<input formControlName="email" kendoTextBox #email required/>

<kendo-formerror *ngIf="userForm.controls.email.errors?.required">Error: Email is required
</kendo-formerror>
@@ -16,7 +16,8 @@

<kendo-formfield [showErrors]="'initial'">
<kendo-label [for]="password" text="Password"></kendo-label>
<input formControlName="password" type="password" kendoTextBox #password required />
<input formControlName="password" type="password"
kendoTextBox #password required />

<kendo-formerror *ngIf="userForm.controls.password.errors?.required">Error: Password is required
</kendo-formerror>

+ 2
- 2
src/app/auth/auth.component.ts Wyświetl plik

@@ -12,8 +12,8 @@ import { MenuService } from '../service/menu.service';
export class AuthComponent implements OnInit {

public userForm: FormGroup = new FormGroup({
password: new FormControl('', [Validators.minLength(3), Validators.maxLength(20)]),
email: new FormControl('', Validators.email)
password: new FormControl('abcdefg', [Validators.minLength(3), Validators.maxLength(20)]),
email: new FormControl('email@email.com', Validators.email)
});

constructor(private menuService: MenuService, private rounter: Router) { }

+ 2
- 2
src/app/auth/dist/auth.component.js Wyświetl plik

@@ -14,8 +14,8 @@ var AuthComponent = /** @class */ (function () {
this.menuService = menuService;
this.rounter = rounter;
this.userForm = new forms_1.FormGroup({
password: new forms_1.FormControl('', [forms_1.Validators.minLength(3), forms_1.Validators.maxLength(20)]),
email: new forms_1.FormControl('', forms_1.Validators.email)
password: new forms_1.FormControl('abcdefg', [forms_1.Validators.minLength(3), forms_1.Validators.maxLength(20)]),
email: new forms_1.FormControl('email@email.com', forms_1.Validators.email)
});
}
AuthComponent.prototype.ngOnInit = function () {

Ładowanie…
Anuluj
Zapisz