SplitButton

Extend from $.fn.linkbutton.defaults. Override defaults with $.fn.splitbutton.defaults.

Dependencies

Usage

  1. <a href="javascript:void(0)" id="sb" iconCls="icon-ok" onclick="javascript:alert('ok')">Ok</a>  
  2. <div id="mm" style="width:100px;">  
  3.     <div iconCls="icon-ok">Ok</div>  
  4.     <div iconCls="icon-cancel">Cancel</div>  
  5. </div>  
  1. $('#sb').splitbutton({  
  2.     menu:'#mm'  
  3. });  

Properties

The properties extend from linkbutton, below is the added properties for splitbutton.

Name Type Description Default
plain boolean True to show plain effect. true
menu string A selector to create a corresponding menu. null
duration number Defines duration time in milliseconds to show menu when hovering the button. 100

Methods

Name Parameter Description
options none Return the options object.
disable none Disable the splitbutton.
enable none Enable the splitbutton.
destroy none Destroy the splitbutton.