Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
joo.classLoader.prepare("package ext.config",/* {*/


/**
 * Composite field allowing a number of form Fields to be rendered on the same row. The fields are rendered using an hbox layout internally, so all of the normal HBox layout config items are available. Example usage: <pre>{
 xtype: 'compositefield',
 labelWidth: 120
 items: [
 {
 xtype     : 'textfield',
 fieldLabel: 'Title',
 width     : 20
 },
 {
 xtype     : 'textfield',
 fieldLabel: 'First',
 flex      : 1
 },
 {
 xtype     : 'textfield',
 fieldLabel: 'Last',
 flex      : 1
 }
 ]
 }
 </pre>In the example above the composite's fieldLabel will be set to 'Title, First, Last' as it groups the fieldLabels of each of its children. This can be overridden by setting a fieldLabel on the compositefield itself: <pre>{
 xtype: 'compositefield',
 fieldLabel: 'Custom label',
 items: [...]
 }
 </pre>Any Ext.form.&#42; component can be placed inside a composite field.
 *
 * <p>This class serves as a
 * typed config object for constructor of class CompositeField.</p>
 *
 * <p>Copyright &#169; 2011 Sencha Inc.</p>
 * @see ext.form.CompositeField
 */
{ExtConfig:{target:"ext.form.CompositeField", xtype:"compositefield"}},
"public class compositefield extends ext.config.field",6,function($$private){var $1=ext.config;return[ 

  "public function compositefield",function compositefield(config/*:Object = null*/) {if(arguments.length<=0)config=null;

     $1.field.call(this,config);
  },


  /**
   Any default properties to assign to the child fields.
   */
  "public native function get defaults"/*():Object*/,

  /**
   * @private
   */
  "public native function set defaults"/*(value:Object):void*/,

  /**
   * Items to include in composite field
   */
  "public native function get items"/*():**/,

  /**
   * @private
   */
  "public native function set items"/*(value:*):void*/,

  /**
   The string to use when joining segments of the built label together (defaults to ', ')
   */
  "public native function get labelConnector"/*():String*/,

  /**
   * @private
   */
  "public native function set labelConnector"/*(value:String):void*/,


undefined];},[],["ext.config.field"], "0.8.0", "2.0.0"
);
New to GrepCode? Check out our FAQ X