Balloon.2.6 —— UI組件之彈出窗

方法入口

var $combo = $().$b("combo",config)  //返回組件的jQuery對象,即下面模板的jQuery對象

組件模板

<span class="combo">
<% if(isHaveText){ %>
<input 
	id="<%= id %>" 
	name="<%= name %>"
	value="<%= defaultValue %>" 
	class="blo_input" />
<% } %>
<% if(openType == "pop"){ %>
<div class="btn" >
	<div class="icon icon-r"></div>
</div>
<div class="box dialogBox"></div>
<% }else{ %>
<div class="btn" >
	<div class="icon icon-d"></div>
	<div class="box comboBox"></div>
</div>
<% } %>
</span>

配置屬性(通用屬性參看2.3節)

屬性名 類型 默認值 說明
openType String combo 打開方式,pop或者combo
isHaveText Boolean true 是否有文本框
isVerify Boolean false 組件是否需要驗證
beforeClick function 空方法 按鈕點擊前事件,如果返回false,則不打開combo框
tplUrl String template/combo.html 模板路徑
方法(通用方法參看2.3節)
暫無
說明  
入參    
返回    
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章