itcast.crm.ui/EasyUI/demo/textbox/icons.html

(完整代码) 1KB

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>TextBox with Icons - jQuery EasyUI Demo</title>
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2>TextBox with Icons</h2>
	<p>Click the icons on textbox to perform actions.</p>
	<div style="margin:20px 0 40px 0;"></div>
    <div style="margin:10px 0 20px 0">
        <span>Select Icon Align: </span>
        <select onchange="$('#tt').textbox({iconAlign:this.value})">
            <option value="right">Right</option>
            <option value="left">Left</option>
        </select>
    </div>
	<div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
		<div style="margin-bottom:20px">
			<input id="tt" class="easyui-textbox" style="width:100%;" data-options="
					label: 'Icons:',
					labelPosition: 'top',
					prompt: 'Input something here!',
					iconWidth: 22,
					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:'icon-search',
						handler: function(e){
							var v = $(e.data.target).textbox('getValue');
							alert('The inputed value is ' + (v ? v : 'empty'));
						}
					}]
					">
		</div>
	</div>
</body>
</html>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。