angualr

html

<mat-toolbar style="margin-top: 15px">Multiple Upload</mat-toolbar>

<mat-form-field #fileInfo class="standard-width">

<input matInput value="{{ fileInfo.cnt == 1 ? fileInfo.name : fileInfo.msg }}">

Chill_Radio 發表在 痞客邦 留言(0) 人氣()

html

<form [formGroup]="gridForm">

<div formArrayName="data">

<div *ngFor="let row of gridForms.controls; let i=index" [formGroupName]="i">

<input formControlName="KEY_NO">

Chill_Radio 發表在 痞客邦 留言(0) 人氣()

http://bioankeyang.blogspot.com/2014/04/jsjavascript.html

import { Pipe, PipeTransform } from '@angular/core';

// export enum PipeParm {

// CompileStatus = 'CompileStatus',

// CompilePGType = 'CompilePGType',

Chill_Radio 發表在 痞客邦 留言(0) 人氣()

系統機碼(Registry)的 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\3.5\Engines\Excel

https://blog.miniasp.com/post/2008/08/05/How-to-read-Excel-file-using-OleDb-correctly.aspx

你可以開啟 regedit 程式,選取進系統機碼(Registry)的 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\3.5\Engines\Excel 

我是(HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Access Connectivity Engine\Engines\Excel)

位置,這裡有兩個非常重要的設定:

Chill_Radio 發表在 痞客邦 留言(0) 人氣()

ts

importExcel() {

this.excelService.HttpImportExcel().subscribe(excelData => {

this.dataColumnSet(Object.keys(excelData[0]));// 用return data 生成欄位

this.excelTabGroupSet(excelData);// set tabGroup

Chill_Radio 發表在 痞客邦 留言(0) 人氣()

.ts

selectedRowData(row: DAS_AGENT_USER_LINK) {

this.selectedRow = row;

}

editRowData(isdisable: Boolean, row: DAS_AGENT_USER_LINK) {

Chill_Radio 發表在 痞客邦 留言(0) 人氣()

.flashAnimate {

animation-name: example;

animation-duration: 0.6s;

animation-iteration-count:infinite;

animation-direction: alternate;

Chill_Radio 發表在 痞客邦 留言(0) 人氣()

=ts=

// treeView

rpTreeView: MatTableDataSource<any>;

treeControl;

Chill_Radio 發表在 痞客邦 留言(0) 人氣()

https://dotblogs.com.tw/shadow/2012/08/16/74099

這招在Json.net的官方文件有範例(用JObject.FromObject的那個):http://james.newtonking.com/projects/json/help/html/CreatingLINQtoJSON.htm

但只有範例,沒寫為什麼Linq要那樣寫,誰看得懂阿XD

要用Linq直接組JSON

大概把握幾點:

Chill_Radio 發表在 痞客邦 留言(0) 人氣()

https://stackblitz.com/edit/cdk-nested-tree?file=src%2Fapp%2Fmytree%2Fmytree.component.html

Chill_Radio 發表在 痞客邦 留言(0) 人氣()

===scss==

// tree test

mat-tree {

margin: 24px;

}

Chill_Radio 發表在 痞客邦 留言(0) 人氣()

<form #form1="ngForm" (ngSubmit)="submit(form1)">

<div>

<label for="employeeName">employee name</label>

<input id="employeeName" type="text" name="employeeName" ngModel #employeeName="ngModel" required/>

<span *ngIf="employeeName.errors?.required && form1.submitted">employee name is required</span>

Chill_Radio 發表在 痞客邦 留言(0) 人氣()

1 2 3
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。