TextBox 英文文档
TextBox
Extend from $.fn.validatebox.defaults. Override defaults with $.fn.textbox.defaults.
The TextBox component is a enhanced input field that allows users build their form easily. It is the base component for building other complex components such as combo,datebox,spinner,etc.

Dependencies
- validatebox
- linkbutton
Usage Example
Create textbox from markup.
- <input class="easyui-textbox" data-options="iconCls:'icon-search'" style="width:300px">
Create textbox by using javascript.
- <input id="tb" type="text" style="width:300px">
- $('#tb').textbox({
- buttonText:'Search',
- iconCls:'icon-man',
- iconAlign:'left'
- })
Properties
The properties extend from validatebox, below is the added properties for textbox:
| Name | Type | Description | Default |
|---|---|---|---|
| width | number | The width of the component. | auto |
| height | number | The height of the component. | 22 |
| prompt | string | The prompt message to be displayed in input box. | '' |
| value | string | The default value. | |
| type | string | The textbox type. Possible values are 'text' and 'password'. | text |
| multiline | boolean | Defines if this is a multiline textbox. | false |
| editable | boolean | Defines if user can type text directly into the field. | true |
| disabled | boolean | Defines if to disable the field. | false |
| readonly | boolean | Defines if the component is read-only. | false |
| icons | array | The icons attached to the textbox. Each item has the following properties: iconCls: string, the icon class. disabled: boolean, indicate if the icon is disabled. handler: function, the function to process the clicking action on this icon. Code example: $('#tb').textbox({
|
[] |
| iconCls | string | The background icon displayed on the textbox. | null |
| iconAlign | string | Position of the icons. Possible values are 'left','right'. | right |
| iconWidth | number | The icon width. | 18 |
| buttonText | string | The displaying text of button that attached to the textbox. | |
| buttonIcon | string | The displaying icon of button that attached to the textbox. | null |
| buttonAlign | string | Position of the button. Possible values are 'left','right'. | right |
Events
The events extend from validatebox, below is the added events for textbox.
| Name | Parameters | Description |
|---|---|---|
| onChange | newValue,oldValue | Fires when the field value is changed. |
| onResize | width,height | Fires when the textbox is resized. |
| onClickButton | none | Fires when the user click the button. |
| onClickIcon | index | Fires when the user click a icon. |
Methods
The methods extend from validatebox, below is the added methods for textbox.
| Name | Parameter | Description |
|---|---|---|
| options | none | Return the options object. |
| textbox | none | Return the textbox object. The user can bind any events to this editing box.
Code example: var t = $('#tt');
|
| button | none | Return the button object. |
| destroy | none | Destroy the textbox component. |
| resize | width | Resize the component width. |
| disable | none | Disable the component. |
| enable | none | Enable the component. |
| readonly | mode | Enable/Disable readonly mode.
Code example: $('#tb').textbox('readonly'); // enable readonly mode
|
| clear | none | Clear the component value. |
| reset | none | Reset the component value. |
| initValue | value | Initialize the component value. Calling this method does not trigger the 'onChange' event. |
| setText | text | Set the displaying text value. |
| getText | none | Get the displaying text value. |
| setValue | value | Set the component value. |
| getValue | none | Get the component value. |
| getIcon | index | Get specified icon object. |
原文:http://www.jeasyui.com/documentation/index.php#
TextBox 英文文档的更多相关文章
- openstack【Kilo】汇总:包括20英文文档、各个组件新增功能及Kilo版部署
OpenStack Kilo版本发布 20英文文档OpenStack Kilo版本文档汇总:各个操作系统安装部署.配置文档.用户指南等文档 Kilo版部署 openstack[Kilo]入门 [准备篇 ...
- py爬取英文文档学习单词
最近开始看一些整本整本的英文典籍,虽然能看个大概,但是作为四级都没过的我来说还是有些吃力,总还有一部分很关键的单词影响我对句子的理解,因为看的是纸质的,所以查询也很不方便,于是想来个突击,我想把程序单 ...
- 英文文档帮查&翻译计划
以CSDN为首,知乎其次,cnblog带路的一大批博客上充斥着大量低质量的编程入门教程,代码粗制滥造,毫无缩进,没有高亮,东抄西抄.初学者如果长期参照这种垃圾博客来解决问题,将会适得其反,走入歧途. ...
- Python3求英文文档中每个单词出现的次数并排序
[本文出自天外归云的博客园] 题目要求: 1.统计英文文档中每个单词出现的次数. 2.统计结果先按次数降序排序,再按单词首字母降序排序. 3.需要考虑大文件的读取. 我的解法如下: import ch ...
- gitlab安装教程、gitlab官网、英文文档
gitlab官网 https://about.gitlab.com/ gitlab安装和官网英文文档 https://about.gitlab.com/downloads/ 清华大学tuna镜像源 G ...
- Android 英文文档下载地址
通过英文Android API学习Android技术是一个不错选择,当然养鸡的专业户要小心了,以下分享一些下载英文文档的链接(请使用迅雷下载): https://dl-ssl.google.com/a ...
- PHP-redis英文文档
作为程序员,看英文文档是必备技能,所以尽量还是多看英文版的^^ PhpRedis The phpredis extension provides an API for communicating wi ...
- python3 怎么统计英文文档常用词?(附解释)
# coding: utf-8 # In[32]: #import requests #from bs4 import BeautifulSoup #res = requests.get(" ...
- 利用谷歌翻译网站和Adobe Acrobat翻译英文文档,且鼠标放置后显示英文原文(无字数限制)(18/12/11更新)
软件:Adobe Acrobat 网页:https://translate.google.cn/?tr=f&hl=zh-CN 方法: 第一步:用Adobe Acrobat 打开英文 ...
随机推荐
- AngularJs学习之一使用自定义的过滤器
script: 参数item是由AngularJs提供的,是应当被过滤的对象集合.而showComplete是我们传入的参数. {{item.action}} 用ng-model创造一个名为showC ...
- 学习通过Thread+Handler实现非UI线程更新UI组件
[Android线程机制] 出于性能考虑,Android的UI操作并不是线程安全的,这就意味着如果有多个线程并发操作UI组件,可能导致线程安全问题.为了解决这个问题,Android制定了一条简单的规则 ...
- 踩的python列表及for循环一个坑儿
一个列表循环的问题,困扰了半个小时,我也是醉了,值得深思 下面开始提需求: 一个列表mylist = [{'tag':1,'num' :5000},{'tag':2,num: 6000},{'tag' ...
- CentOS关闭火狐浏览器Flash过期提示
关闭旧版插件屏蔽提示 打开 about:config?filter=extensions.blocklist.enabled 右键切换,关闭flash版本过旧被屏蔽的提示. 参考: http://ti ...
- PHP之:随机抽取一个数&&随机函数
撰写日期:2016-7-20 16:00:24 有5个数:1 4 7 9 6 用PHP实现随机抽取5个数中的其中一个 方法一: <?php $test = array(1,4,7,9,6);// ...
- WPF控件ComboBox 每个Item的ToolTip引发的异常
介绍 首先介绍下要实现的任务.做一个下拉框,当选择每个项的时候将鼠标发在上面显示该项的ToolTip的内容(Image). 实现 Model: public class SkinInfo : Noti ...
- Python基本数据类型之int
一.int的范围 2.7: 32位:-2^31~2^31-1 64位:-2^63~2^63-1 3.5: 在3.5中init长度理论上是无限的 二.python内存机制 在一般情况下当变量被赋值后,内 ...
- HTML5学习总结-06 WebWorker
一 WebWorkder 它允许开发人员编写能够长时间运行而不被用户所中断的后台程序,去执行事务或者逻辑,并同时保证页面对用户的响应.简而言之,就是允许JavaScript创建多个线程,但是子线程完全 ...
- JS-DOM2级封装练习题--点击登录弹出登录对话框
<!doctype html><html lang="en"> <head> <meta charset="UTF-8" ...
- 【原】dangerouslySetInnerHTML, 让React正常显示你的html代码
昨天在弄一个让内容换行显示时,遇到一个问题,就是我有<br />的代码在页面中不换行,而是直接显示<br />,代码如下: <!DOCTYPE html> < ...