Properties Methods Events Config Options Direct Link
Observable
  Component
    BoxComponent
      Button
        SplitButton

Class CQ.Ext.SplitButton

Package:CQ.Ext
Class:SplitButton
Subclasses:CycleButton
Extends:CQ.Ext.Button
Clientlib:cq.widgets
xtype:splitbutton
A split button that provides a built-in dropdown arrow that can fire an event separately from the default click event of the button. Typically this would be used to display a dropdown menu that provides additional options to the primary button action, but any custom handler can provide the arrowclick implementation. Example usage:
// display a dropdown menu:
new CQ.Ext.SplitButton({
	renderTo: 'button-ct', // the container id
   	text: 'Options',
   	handler: optionsHandler, // handle a click on the button itself
   	menu: new CQ.Ext.menu.Menu({
        items: [
        	// these items will render as dropdown menu items when the arrow is clicked:
	        {text: 'Item 1', handler: item1Handler},
	        {text: 'Item 2', handler: item2Handler}
        ]
   	})
});

// Instead of showing a menu, you provide any type of custom
// functionality you want when the dropdown arrow is clicked:
new CQ.Ext.SplitButton({
	renderTo: 'button-ct',
   	text: 'Options',
   	handler: optionsHandler,
   	arrowHandler: myCustomHandler
});

Config Options

Config Options Defined By
  allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
  arrowHandler : Function
A function called when the arrow button is clicked (can be used instead of click event)
SplitButton
  arrowTooltip : String
The title attribute of the arrow
SplitButton
  disabled : Boolean
Render this component disabled (default is false).
Component
  disabledClass : String
CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
Component
  enableToggle : Boolean
True to enable pressed/not pressed toggling (defaults to false)
Button
  handleMouseEvents : Boolean
False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)
Button
  iconCls : String
A css class which sets a background image to be used as the icon for this button
Button
  pageX : Number
The page level x coordinate for this component if contained within a positioning container.
BoxComponent
  pageY : Number
The page level y coordinate for this component if contained within a positioning container.
BoxComponent
  pressed : Boolean
True to start pressed (only if enableToggle = true)
Button
  tabIndex : Number
Set a DOM tabIndex for this button (defaults to undefined)
Button
  text : String
The button text to be used as innerHTML (html tags are accepted)
Button
  toggleGroup : String
The group this toggle button is a member of (only 1 per group can be pressed)
Button
  tooltip : String/Object
The tooltip for the button - can be a string to be used as innerHTML (html tags are accepted) or QuickTips config object
Button
  tooltipType : String
The type of tooltip to use. Either 'qtip' (default) for QuickTips or 'title' for title attribute.
Button
  type : String
submit, reset or button - defaults to 'button'
Button
  x : Number
The local x (left) coordinate for this component if contained within a positioning container.
BoxComponent
  y : Number
The local y (top) coordinate for this component if contained within a positioning container.
BoxComponent

Public Properties

Property Defined By
  disabled : Boolean
True if this component is disabled. Read-only.
Component
  hidden : Boolean
True if this component is hidden. Read-only.
Component
  initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
  menu : Menu The
Button
  pressed : Boolean
Read-only. True if this button is pressed (only if enableToggle = true)
Button
  refOwner : CQ.Ext.Container The
Component
  rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

Method Defined By

Public Events

Event Defined By