import { Component, ViewEncapsulation } from '@angular/core'; import { EsbService, Browser, EsbRightPadPipe, EsbLeftPadPipe, EsbImageAnimationConfig } from 'global-esb-common'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'], encapsulation: ViewEncapsulation.None }) export class AppComponent { browser: Browser; /** * left-right panel multiple select */ itemsLeft: Array; selectedItemsRight: Array; watchedRightItems: Array; imgDataSource: any; imgDataConfig: any; constructor(private esbLeftPadPipe: EsbLeftPadPipe, private esbRightPadPipe: EsbRightPadPipe, private esbService: EsbService) { this.browser = this.esbService.getBrowser(); const rightPadResult = this.esbRightPadPipe.transform('rightPad', 15, "X"); console.log(rightPadResult); const leftPadResult = this.esbLeftPadPipe.transform('leftPad', 15, 'X'); console.log(leftPadResult); } ngOnInit() { this.imgDataSource = { images: ['assets/slide-img1.jpg', 'assets/slide-img2.jpg', 'assets/slide-img3.jpg'], tooltips: [ '', `
共用區_架構準則規範區
包含了 Angular及Angular RTC包版規範文件如下
C105_GP_090201_00004_Angular Coding Standard-V1.9 .pdf
C105_GP_090201_00005_Angular RTC包版規範-V1.0 .pdf
go to EIP網站連結
`, '' ] }; this.imgDataConfig = { animationType: EsbImageAnimationConfig.SLIDE_OVERLAP, autoplay: true, autoplayDelay: 2000 }; this.itemsLeft = [ { label: ' -K 其他大洋洲地區', value: 1 }, { label: ' -L 東帝汶 TIMOR-LESTE', value: 2 }, { label: ' -F 阿富汗 AFGHANISTAN(受管制)', value: 3 }, { label: ' UY 烏拉圭 URUGUAY', value: 4 }, { label: ' HT 海地 HAITI', value: 5 }, { label: ' JP 日本 JAPAN', value: 6 }, { label: ' KE 肯亞 KENYA', value: 7 }, { label: ' PH 菲律賓 PHILIPPINES', value: 8 }, { label: ' PL 波蘭 POLAND', value: 9 }, { label: ' MX 墨西哥 MEXICO', value: 10 }, { label: ' MY 馬來西亞 MALAYSIA', value: 11 }, { label: ' US 美國 UNITED STATES', value: 12 }, ] this.selectedItemsRight = [{ label: ' US 美國 UNITED STATES', value: 12 }]; } selectedRightItemChange($event: any) { this.watchedRightItems = $event; console.log(' selectedRightItemChange'); console.log(this.watchedRightItems); } sayhi() { console.log('test'); } }