X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.form.CheckboxGroup.html diff --git a/docs/output/Ext.form.CheckboxGroup.html b/docs/output/Ext.form.CheckboxGroup.html index 25bcbd22..84fed4e9 100644 --- a/docs/output/Ext.form.CheckboxGroup.html +++ b/docs/output/Ext.form.CheckboxGroup.html @@ -1,4 +1,4 @@ -
Observable
  Component
    BoxComponent
      Field
        CheckboxGroup

Class Ext.form.CheckboxGroup

Package:Ext.form
Defined In:CheckboxGroup.js
Class:CheckboxGroup
Subclasses:RadioGroup
Extends:Field

A grouping container for Ext.form.Checkbox controls.

+
Observable
  Component
    BoxComponent
      Field
        CheckboxGroup

Class Ext.form.CheckboxGroup

Package:Ext.form
Defined In:CheckboxGroup.js
Class:CheckboxGroup
Subclasses:RadioGroup
Extends:Field

A grouping container for Ext.form.Checkbox controls.

Sample usage:

var myCheckboxGroup = new Ext.form.CheckboxGroup({
     id:'myGroup',
@@ -144,7 +144,10 @@ Warning: This will override any size manag...

The maxi Warning: This will override any size mana...

The minimum value in pixels which this BoxComponent will set its height to.

Warning: This will override any size management applied by layout managers.

BoxComponent boxMinWidth : Number
The minimum value in pixels which this BoxComponent will set its width to. Warning: This will override any size manag...

The minimum value in pixels which this BoxComponent will set its width to.

-

Warning: This will override any size management applied by layout managers.

BoxComponent clearCls : String
The CSS class used to to apply to the special clearing div rendered +

Warning: This will override any size management applied by layout managers.

BoxComponent bubbleEvents : Array
An array of events that, when fired, should be bubbled to any parent container. +See Ext.util.Observable.enableBubble....

An array of events that, when fired, should be bubbled to any parent container. +See Ext.util.Observable.enableBubble. +Defaults to [].

Component clearCls : String
The CSS class used to to apply to the special clearing div rendered directly after each form field wrapper to provide...

The CSS class used to to apply to the special clearing div rendered directly after each form field wrapper to provide field clearing (defaults to 'x-form-clear-left').

@@ -439,9 +442,9 @@ to the second, and the bottom is set to the third.
  • If there are four values, they apply to the top, right, bottom, and left, respectively.
  • Defaults to:

    {top:0, right:0, bottom:0, left:0}
    BoxComponent msgFx : String
    Experimental The effect used when displaying a validation message under the field -(defaults to 'normal').
    Field msgTarget<p>The : String
    location where the message text set through markInvalid should display. +(defaults to 'normal').
    Field msgTarget : String
    The location where the message text set through markInvalid should display. Must be one of the following values: -<div cla...
    location where the message text set through markInvalid should display. +<div...

    The location where the message text set through markInvalid should display. Must be one of the following values:

    • qtip Display a quick tip containing the message when the user hovers over the field. This is the default. @@ -450,7 +453,7 @@ Must be one of the following values:

    • under Add a block div beneath the field containing the error message.
    • side Add an error icon to the right of the field, displaying the message in a popup on hover.
    • [element id] Add the error message directly to the innerHTML of the specified element.
    • -
    Field overCls : String
    An optional extra CSS class that will be added to this component's Element when the mouse moves +
    Field overCls : String
    An optional extra CSS class that will be added to this component's Element when the mouse moves over the Element, and...
    An optional extra CSS class that will be added to this component's Element when the mouse moves over the Element, and removed when the mouse moves out. (defaults to ''). This can be useful for adding customized 'active' or 'hover' styles to the component or any of its children using standard CSS rules.
    Component 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 plugins : Object/Array
    An object or array of objects that will provide custom functionality for this component. The only @@ -729,38 +732,38 @@ should usually not need to be called directly.
    Enable this component and fire the 'enable' event.
    Enable this component and fire the 'enable' event.
    Parameters:
    • None.
    Returns:
    • Ext.Component
      this
    Component enableBubbleString/Array events ) : - void
    Enables events fired by this Observable to bubble up an owner hierarchy by calling -this.getBubbleTarget() if present...

    Enables events fired by this Observable to bubble up an owner hierarchy by calling -this.getBubbleTarget() if present. There is no implementation in the Observable base class.

    -

    This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default -implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to -access the required target more quickly.

    -

    Example:

    Ext.override(Ext.form.Field, {
    -    //  Add functionality to Field's initComponent to enable the change event to bubble
    
    -    initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
    -        this.enableBubble('change');
    -    }),
    -
    -    //  We know that we want Field's events to bubble directly to the FormPanel.
    
    -    getBubbleTarget : function() {
    -        if (!this.formPanel) {
    -            this.formPanel = this.findParentByType('form');
    -        }
    -        return this.formPanel;
    -    }
    -});
    -
    -var myForm = new Ext.formPanel({
    -    title: 'User Details',
    -    items: [{
    -        ...
    -    }],
    -    listeners: {
    -        change: function() {
    -            // Title goes red if form has been modified.
    
    -            myForm.header.setStyle('color', 'red');
    -        }
    -    }
    +                                        void
    Enables events fired by this Observable to bubble up an owner hierarchy by calling +this.getBubbleTarget() if present....

    Enables events fired by this Observable to bubble up an owner hierarchy by calling +this.getBubbleTarget() if present. There is no implementation in the Observable base class.

    +

    This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default +implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to +access the required target more quickly.

    +

    Example:

    Ext.override(Ext.form.Field, {
    +    //  Add functionality to Field's initComponent to enable the change event to bubble
    +    initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
    +        this.enableBubble('change');
    +    }),
    +
    +    //  We know that we want Field's events to bubble directly to the FormPanel.
    +    getBubbleTarget : function() {
    +        if (!this.formPanel) {
    +            this.formPanel = this.findParentByType('form');
    +        }
    +        return this.formPanel;
    +    }
    +});
    +
    +var myForm = new Ext.formPanel({
    +    title: 'User Details',
    +    items: [{
    +        ...
    +    }],
    +    listeners: {
    +        change: function() {
    +            // Title goes red if form has been modified.
    +            myForm.header.setStyle('color', 'red');
    +        }
    +    }
     });
    Parameters:
    • events : String/Array
      The event name to bubble, or an Array of event names.
    Returns:
    • void
    Observable findParentByFunction fn ) : Ext.Container
    Find a container above this component at any level by a custom function. If the passed function returns @@ -798,7 +801,11 @@ or use a render listener directly:

    new Ext.Panel({
             },
             single: true  // Remove the listener after first invocation
         }
    -});
    Parameters:
    • None.
    Returns:
    • Ext.Element
      The Element which encapsulates this Component.
    Component getHeight() +});
    Parameters:
    • None.
    Returns:
    • Ext.Element
      The Element which encapsulates this Component.
    Component getErrors() + : + Array
    Runs CheckboxGroup's validations and returns an array of any errors. The only error by default +is if allowBlank is se...
    Runs CheckboxGroup's validations and returns an array of any errors. The only error by default +is if allowBlank is set to true and no items are checked.
    Parameters:
    • None.
    Returns:
    • Array
      Array of all validation errors
    CheckboxGroup getHeight() : Number
    Gets the current height of the component's underlying element.
    Gets the current height of the component's underlying element.
    Parameters:
    • None.
    Returns:
    • Number
    BoxComponent getId() : @@ -969,14 +976,19 @@ See Ext.fo If events were suspended using the queueSuspended parameter, then all event...
    Resume firing events. (see suspendEvents) If events were suspended using the queueSuspended parameter, then all -events fired during event suspension will be sent to any listeners now.
    Parameters:
    • None.
    Returns:
    • void
    Observable setAutoScrollBoolean scroll ) +events fired during event suspension will be sent to any listeners now.
    Parameters:
    • None.
    Returns:
    • void
    Observable setActiveErrorString msgBoolean suppressEvent ) + : + void
    Sets the current activeError to the given string. Fires the 'invalid' event. +This does not set up the error icon, onl...
    Sets the current activeError to the given string. Fires the 'invalid' event. +This does not set up the error icon, only sets the message and fires the event. To show the error icon, +use markInvalid instead, which calls this method internally
    Parameters:
    • msg : String
      The error message
    • suppressEvent : Boolean
      True to suppress the 'invalid' event from being fired
    Returns:
    • void
    Field setAutoScrollBoolean scroll ) : Ext.BoxComponent
    Sets the overflow on the content element of the component.
    Sets the overflow on the content element of the component.
    Parameters:
    • scroll : Boolean
      True to allow the Component to auto scroll.
    Returns:
    • Ext.BoxComponent
      this
    BoxComponent setDisabledBoolean disabled ) : - Ext.Component
    Convenience function for setting disabled/enabled by boolean.
    Convenience function for setting disabled/enabled by boolean.
    Parameters:
    • disabled : Boolean
    Returns:
    • Ext.Component
      this
    Component setHeightNumber height ) + Ext.Component
    Convenience function for setting disabled/enabled by boolean.
    Convenience function for setting disabled/enabled by boolean.
    Parameters:
    • disabled : Boolean
    Returns:
    • Ext.Component
      this
    Component setHeightMixed height ) : - Ext.BoxComponent
    Sets the height of the component. This method fires the resize event.
    Sets the height of the component. This method fires the resize event.
    Parameters:
    • height : Number
      The new height to set. This may be one of:
        -
      • A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels).
      • + Ext.BoxComponent
        Sets the height of the component. This method fires the resize event.
        Sets the height of the component. This method fires the resize event.
        Parameters:
        • height : Mixed
          The new height to set. This may be one of:
            +
          • A Number specifying the new height in the Element's defaultUnits (by default, pixels).
          • A String used to set the CSS height style.
          • undefined to leave the height unchanged.
        Returns:
        • Ext.BoxComponent
          this
        BoxComponent setPagePositionNumber xNumber y ) @@ -1022,10 +1034,10 @@ myCheckboxGroup.setValue({ myCheckboxGroup.setValue('cb-col-1,cb-col-3'); See Ext.form.Checkbox.setValue for additional information.
        Parameters:
        • id : Mixed
          The checkbox to check, or as described by example shown.
        • value : Boolean
          (optional) The value to set the item.
        Returns:
        • Ext.form.CheckboxGroup
          this
      CheckboxGroup setVisibleBoolean visible ) : - Ext.Component
      Convenience function to hide or show this component by boolean.
      Convenience function to hide or show this component by boolean.
      Parameters:
      • visible : Boolean
        True to show, false to hide
      Returns:
      • Ext.Component
        this
      Component setWidthNumber width ) + Ext.Component
      Convenience function to hide or show this component by boolean.
      Convenience function to hide or show this component by boolean.
      Parameters:
      • visible : Boolean
        True to show, false to hide
      Returns:
      • Ext.Component
        this
      Component setWidthMixed width ) : - Ext.BoxComponent
      Sets the width of the component. This method fires the resize event.
      Sets the width of the component. This method fires the resize event.
      Parameters:
      • width : Number
        The new width to setThis may be one of:
        BoxComponent unString eventNameFunction handler[Object scope] ) : - void
        Removes an event handler (shorthand for removeListener.)
        Removes an event handler (shorthand for removeListener.)
        Parameters:
        • eventName : String
          The type of event the handler was associated with.
        • handler : Function
          The handler to remove. This must be a reference to the function passed into the addListener call.
        • scope : Object
          (optional) The scope originally specified for the handler.
        Returns:
        • void
        Observable updateMixed htmlOrData[Boolean loadScripts][Function callback] ) + void
        Removes an event handler (shorthand for removeListener.)
        Removes an event handler (shorthand for removeListener.)
        Parameters:
        • eventName : String
          The type of event the handler was associated with.
        • handler : Function
          The handler to remove. This must be a reference to the function passed into the addListener call.
        • scope : Object
          (optional) The scope originally specified for the handler.
        Returns:
        • void
        Observable unsetActiveErrorBoolean suppressEvent ) + : + void
        Clears the activeError and fires the 'valid' event. This is called internally by clearInvalid and would not +usually n...
        Clears the activeError and fires the 'valid' event. This is called internally by clearInvalid and would not +usually need to be called manually
        Parameters:
        • suppressEvent : Boolean
          True to suppress the 'invalid' event from being fired
        Returns:
        • void
        Field updateMixed htmlOrData[Boolean loadScripts][Function callback] ) : void
        Update the content area of a component.
        Update the content area of a component.
        Parameters:
        • htmlOrData : Mixed
          If this component has been configured with a template via the tpl config then it will use this argument as data to populate the template. @@ -1048,7 +1064,13 @@ content area will be updated via Ext.Element update
        • loadScri : Ext.BoxComponent
          Sets the current box measurements of the component's underlying element.
          Sets the current box measurements of the component's underlying element.
          Parameters:
          • box : Object
            An object in the format {x, y, width, height}
          Returns:
          • Ext.BoxComponent
            this
          BoxComponent validate() : - Boolean
          Validates the field value
          Validates the field value
          Parameters:
          • None.
          Returns:
          • Boolean
            True if the value is valid, else false
          Field

          Public Events

          EventDefined By

          Public Events

          EventDefined By