瀏覽代碼

dialog order matters when popup

tags/2.037
Patrick Sun 5 年之前
父節點
當前提交
11b61166c4
共有 4 個文件被更改,包括 74 次插入92 次删除
  1. +30
    -51
      src/app/dashboard/dashboard.component.html
  2. +2
    -2
      src/app/dashboard/dashboard.component.ts
  3. +2
    -2
      src/app/dashboard/dist/dashboard.component.js
  4. +40
    -37
      src/index.html

+ 30
- 51
src/app/dashboard/dashboard.component.html 查看文件

@@ -2,7 +2,35 @@

<kendo-icon [name]="'photo-camera'" [size]="'medium'"></kendo-icon>

<div class="example-wrapper" style="opacity:0.8;">


<hr>

<kendo-grid [data]="gridData" >
<kendo-grid-column field="ProductID" title="ID" width="40">
</kendo-grid-column>
<kendo-grid-column field="ProductName" title="Name" width="250">
</kendo-grid-column>
<kendo-grid-column field="Category.CategoryName" title="Category">
</kendo-grid-column>
<kendo-grid-column field="UnitPrice" title="Price" width="80">
</kendo-grid-column>
<kendo-grid-column field="UnitsInStock" title="In stock" width="80">
</kendo-grid-column>
<kendo-grid-column field="Discontinued" title="Discontinued" width="120">
<ng-template kendoGridCellTemplate let-dataItem>
<input type="checkbox" [checked]="dataItem.Discontinued" disabled/>
</ng-template>
</kendo-grid-column>
</kendo-grid>


<!-- <div #target class="target">
<p class="placeholder">Right-click to open Context menu</p>
</div>
<kendo-contextmenu [target]="target" [items]="items"> </kendo-contextmenu> -->

<div class="example-wrapper" style="opacity:1;">
<button kendoButton *ngIf="!dialogOpened && !windowOpened" (click)="open('dialog')">Open dialog</button>
<button kendoButton *ngIf="!dialogOpened && !windowOpened" (click)="open('window')">Open window</button>
@@ -65,53 +93,4 @@
<kendo-window [minWidth]="200" [minHeight]="125" title="About" *ngIf="windowOpened" (close)="close('window')">
<p style="text-align: center;">Additional info</p>
</kendo-window>
</div>

<div class="example-wrapper">
<div class="row">
<div class="col-xs-12 col-sm-6 example-col">
<p>ColorGradient</p>
<kendo-colorgradient [value]="'#7e16c8'"></kendo-colorgradient>
</div>
<div class="col-xs-12 col-sm-6 example-col">
<p>ColorPalette</p>
<kendo-colorpalette [tileSize]="30"></kendo-colorpalette>
</div>
<div class="col-xs-12 col-sm-6 example-col">
<p>ColorPicker</p>
<kendo-colorpicker [value]="'#7e16c8'"></kendo-colorpicker>
</div>
<div class="col-xs-12 col-sm-6 example-col">
<p>MaskedTextBox</p>
<kendo-maskedtextbox
[mask]="'9-000'"
></kendo-maskedtextbox>
</div>
</div>
</div>
<hr>

<kendo-grid [data]="gridData" >
<kendo-grid-column field="ProductID" title="ID" width="40">
</kendo-grid-column>
<kendo-grid-column field="ProductName" title="Name" width="250">
</kendo-grid-column>
<kendo-grid-column field="Category.CategoryName" title="Category">
</kendo-grid-column>
<kendo-grid-column field="UnitPrice" title="Price" width="80">
</kendo-grid-column>
<kendo-grid-column field="UnitsInStock" title="In stock" width="80">
</kendo-grid-column>
<kendo-grid-column field="Discontinued" title="Discontinued" width="120">
<ng-template kendoGridCellTemplate let-dataItem>
<input type="checkbox" [checked]="dataItem.Discontinued" disabled/>
</ng-template>
</kendo-grid-column>
</kendo-grid>


<!-- <div #target class="target">
<p class="placeholder">Right-click to open Context menu</p>
</div>
<kendo-contextmenu [target]="target" [items]="items"> </kendo-contextmenu> -->

</div>

+ 2
- 2
src/app/dashboard/dashboard.component.ts 查看文件

@@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core';
export const sampleProducts = [
{
"ProductID": 1,
"ProductName": "Chai",
"ProductName": "Chai11",
"SupplierID": 1,
"CategoryID": 1,
"QuantityPerUnit": "10 boxes x 20 bags",
@@ -1424,7 +1424,7 @@ export const products = [{
styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent implements OnInit {
public gridData: any[] = products;
public gridData: any[] = sampleProducts;
public dialogOpened = false;
public windowOpened = false;


+ 2
- 2
src/app/dashboard/dist/dashboard.component.js 查看文件

@@ -11,7 +11,7 @@ var core_1 = require("@angular/core");
exports.sampleProducts = [
{
"ProductID": 1,
"ProductName": "Chai",
"ProductName": "Chai11",
"SupplierID": 1,
"CategoryID": 1,
"QuantityPerUnit": "10 boxes x 20 bags",
@@ -1425,7 +1425,7 @@ exports.products = [{
}];
var DashboardComponent = /** @class */ (function () {
function DashboardComponent() {
this.gridData = exports.products;
this.gridData = exports.sampleProducts;
this.dialogOpened = false;
this.windowOpened = false;
}

+ 40
- 37
src/index.html 查看文件

@@ -1,5 +1,6 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>SFM Advanced Broker Platform</title>
@@ -7,48 +8,50 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>

<body>
<app-root></app-root>

<style>
#bgVideo {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
z-index: -1;
}
body {
margin: 0;
background-size: cover;
background-image: url('../img/login-bg1.jpg');
}
.vimeo-container {
padding: 0;
width: 100%;
height: 100vh;
overflow: hidden;
position: relative;
}
iframe {
box-sizing: border-box;
width: 177.77777778vh;
height: 56.25vw;
min-width: 100%;
min-height: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#bgVideo {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
z-index: -1;
}
body {
margin: 0;
background-size: cover;
background-image: url('../img/login-bg1.jpg');
}
.vimeo-container {
padding: 0;
width: 100%;
height: 100vh;
overflow: hidden;
position: relative;
}
iframe {
box-sizing: border-box;
width: 177.77777778vh;
height: 56.25vw;
min-width: 100%;
min-height: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>

<iframe id=bgVideo src="https://player.vimeo.com/video/468031372?background=1&controls=0"
frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
<iframe id=bgVideo src="https://player.vimeo.com/video/468031372?background=1&controls=0" frameborder="0"
allow="autoplay; fullscreen" allowfullscreen></iframe>

</body>
</html>

</html>

Loading…
取消
儲存