欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jQuery EasyUI API 中文文檔 搜索框

 更新時(shí)間:2011年09月29日 00:01:51   作者:  
jQuery EasyUI API 中文文檔 搜索框 SearchBox 搜索框使用介紹,需要的朋友可以參考下。

$.fn.searchbox.defaults重寫defaults。

依賴
menubutton
用法示例
創(chuàng)建SearchBox
1. 從標(biāo)記創(chuàng)建。把 'easyui-searchbox' 類加入到<input/>標(biāo)記。

復(fù)制代碼 代碼如下:

<script type="text/javascript">
function qq(value,name){
alert(value+":"+name)
}
</script>
<input id="ss" class="easyui-searchbox"
searcher="qq"
prompt="Please Input Value" menu="#mm" style="width:300px"></input>
<div id="mm" style="width:120px">
<div name="all" iconCls="icon-ok">All News</div>
<div name="sports">Sports News</div>
</div>

編程創(chuàng)建。
復(fù)制代碼 代碼如下:

<input id="ss"></input>
<div id="mm" style="width:120px">
<div name="all" iconCls="icon-ok">All News</div>
<div name="sports">Sports News</div>
</div>
$('#ss').searchbox({
width:200,
searcher:function(value,name){
alert(value + "," + name)
},
menu:'#mm',
prompt:'Please Input Value'
});

特性

名稱

類型

說(shuō)明

默認(rèn)值

width

number

設(shè)置組件寬度。

auto

propmt

string

顯示在輸入框里的提示信息。

''

value

string

輸入的值。

''

menu

selector

搜索類型的菜單。

null

searcher

function(value,name)

函數(shù),當(dāng)用戶按搜索按鈕或者按ENTER鍵時(shí)被調(diào)用。

null

方法

名稱

參數(shù)

說(shuō)明

options

none

返回options對(duì)象。

menu

none

返回搜索類型的菜單對(duì)象。

textbox

none

返回文本框?qū)ο蟆?/SPAN>

getValue

none

返回當(dāng)前的搜索用值。

setValue

value

設(shè)置新的搜索用值。

getName

none

返回當(dāng)前搜索類型的名稱。

destroy

none

銷毀這個(gè)組件。

resize

width

重設(shè)組件的寬度。

相關(guān)文章

最新評(píng)論