import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: ` <h2>Multiline TextBox</h2> <p>This example shows how to define a textbox for the user to enter multi-line text input.</p> <div style="width:100%;max-width:400px;"> <div style="margin-bottom:10px"> <label [for]="t1" align="top">Name:</label> <eui-textbox #t1 iconCls="icon-man" style="width:100%"></eui-textbox> </div> <div style="margin-bottom:10px"> <label [for]="t2" align="top">Description:</label> <eui-textbox #t2 [multiline]="true" [value]="description" style="width:100%;height:120px"></eui-textbox> </div> </div> ` }) export class AppComponent { description: string = 'This TextBox will allow the user to enter multiple lines of text.'; }
import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { BrowserModule } from '@angular/platform-browser'; import { HttpModule } from '@angular/http'; import { EasyUIModule } from 'easyui/easyui/easyui.module'; import { AppComponent } from './app.component'; @NgModule({ bootstrap: [ AppComponent ], declarations: [ AppComponent ], imports: [ FormsModule, BrowserModule, HttpModule, EasyUIModule ] }) export class AppModule { }
import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app.module'; enableProdMode(); platformBrowserDynamic().bootstrapModule(AppModule);