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.

  1. <input class="easyui-textbox" data-options="iconCls:‘icon-search‘" style="width:300px">

Create textbox by using javascript.

  1. <input id="tb" type="text" style="width:300px">
  1. $(‘#tb‘).textbox({
  2. buttonText:‘Search‘,
  3. iconCls:‘icon-man‘,
  4. iconAlign:‘left‘
  5. })

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({
	icons: [{
		iconCls:‘icon-add‘,
		handler: function(e){
			$(e.data.target).textbox(‘setValue‘, ‘Something added!‘);
		}
	},{
		iconCls:‘icon-remove‘,
		handler: function(e){
			$(e.data.target).textbox(‘clear‘);
		}
	}]
})
[]
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‘);
t.textbox(‘textbox‘).bind(‘keydown‘, function(e){
	if (e.keyCode == 13){	// when press ENTER key, accept the inputed value.
		t.textbox(‘setValue‘, $(this).val());
	}
});
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
$(‘#tb‘).textbox(‘readonly‘,true);	// eanble readonly mode
$(‘#tb‘).textbox(‘readonly‘,false);	// disable 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#

时间: 2024-10-26 01:03:02

TextBox 英文文档的相关文章

Nagios 插件开发英文文档网址

http://nagios-plugins.org/doc/guidelines.html#PREFACE Nagios 插件开发英文文档网址,布布扣,bubuko.com

如何看英文文档?

发现自己没有看英文文档的能力,一是看不进去,二是勉强看进去但是很累,往往看了后面就忘了前面的.太长的文档基本需要很长时间才能看懂. 怎么办? 以后就把英文文档直接下载下来,然后用文本编辑器打开,看一句翻译一句.直接自己搞汉化.这样不仅印象深刻,再次复习的时候也能快速的看懂. 虽然笨了点,效率查了点,但是是个好方法.相信坚持下来还是会有所收获的.以后自己英文文档的阅读能力也会随着翻译的数量的增加而提高的. 纯英文的文档看完了还可以分享的网络上,也算有分享精神,而且,如果哪里有不正确的地方也许网友可

软件开发中 常见英文文档 缩写(转)

软件开发中常见英文缩写和各类软件开发文档的英文缩写: 英文简写 文档名称 MRD market requirement document (市场需求文档) PRD product requirement document (产品需求文档) SOW 工作任务说明书 PHB Process Handbook (项目过程手册) EST Estimation Sheet (估计记录) PPL Project Plan (项目计划) CMP Software Management Plan( 配置管理计划

PHP-redis英文文档

作为程序员,看英文文档是必备技能,所以尽量还是多看英文版的^^ PhpRedis The phpredis extension provides an API for communicating with the Redis key-value store. It is released under the PHP License, version 3.01. This code has been developed and maintained by Owlient from November

openstack【Kilo】汇总:包括20英文文档、各个组件新增功能及Kilo版部署

OpenStack Kilo版本发布 20英文文档OpenStack Kilo版本文档汇总:各个操作系统安装部署.配置文档.用户指南等文档 Kilo版部署 openstack[Kilo]入门 [准备篇]零:整体介绍 openstack[Kilo]入门 [准备篇]一: Ubuntu14.04远程连接(ssh安装) openstack[Kilo]入门 [准备篇]二:NTP安装 openstack[Kilo]入门 [准备篇]三:mysql(MariaDB)安装[控制节点] openstack[Kilo

python3 怎么统计英文文档常用词?(附解释)

# coding: utf-8 # In[32]: #import requests #from bs4 import BeautifulSoup #res = requests.get("http://www.guancha.cn/america/2017_01_21_390488_s.shtml") #res.encoding = 'utf-8' #soup = BeautifulSoup(res.text,'lxml') # In[66]: speech_new = open(&

统计英文文档频率前n单词

#coding:utf-8 #!/usr/bin/python2.6 def statistic_eng_text(): '''统计出英文文档中高频词汇''' cnt = Counter() np = os.path.join(get_project_path(),'doc','jack lodon.txt') ff = open(np,'r') words = ff.read() format_text = re.split('[\s\ \\,\;\.\!\n]+',words) for w

py爬取英文文档学习单词

最近开始看一些整本整本的英文典籍,虽然能看个大概,但是作为四级都没过的我来说还是有些吃力,总还有一部分很关键的单词影响我对句子的理解,因为看的是纸质的,所以查询也很不方便,于是想来个突击,我想把程序单词收拢在一起学习一下,希望这样的更有针对性一些,因为你想,arbitrary (任意的,武断的)这样的单词不太可能会出现在技术文档上,学了这样的单词对理解英文技术文档没有太大帮助.所以今天花了几个小时研究了一下,发现是很可行的,实现也不算难.步骤主要是以下几点,第一:先搞定翻译接口.翻译的来源分为接

Android 英文文档下载地址

通过英文Android API学习Android技术是一个不错选择,当然养鸡的专业户要小心了,下面分享一些下载英文文档的链接(请使用迅雷下载): https://dl-ssl.google.com/android/repository/docs-16_r03.zip        https://dl-ssl.google.com/android/repository/docs-17_r02.zip        https://dl-ssl.google.com/android/reposit