Angular EasyUI 文本框

2020-06-24 17:28 更新

文本框( TextBox )是一个增强的输入字段组件。 文本框( TextBox )允许用户十分简单的创建一组表单。 文本框( TextBox )用于构建其他组合控件的基础组件。

属性列表

名称 数据类型 作用描述 默认值
value string 字段值。 null

注:
- 继承: InputBaseComponent 。
- 选择器: eui-textbox 。

使用方法

<div style="margin-bottom:10px;display:inline-block;margin-right:1em">
    <label [for]="t1" align="top">First Name:</label>
    <eui-textbox #t1 [(ngModel)]="fname" iconCls="icon-man" placeholder="First name"></eui-textbox>
</div><div style="margin-bottom:10px;display:inline-block">
    <label [for]="t2" align="top">Last Name:</label>
    <eui-textbox #t2 [(ngModel)]="lname" placeholder="Last name"></eui-textbox>
</div>
<div style="margin-bottom:10px">
    <label [for]="t3" align="top">Address:</label>
    <eui-textbox #t3 [(ngModel)]="addr" style="width:25em"></eui-textbox>
</div>
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号