Quantcast
Viewing all articles
Browse latest Browse all 35

[WIDGET] Group many fields on dialog

Group many fields on dialog of widget

var linkDialogCfg = {
           
                    "ok" : okHandler,                  
                    "id" : CQ.Util.createId("cq-linkdialog"),
                    "title" : this.fieldLabel + " detail",
                    "height": 390,
                    "width" : 500,
                    "xtype" : "dialog",
                    "linkfield" : this,
                   
                    "items":{
                    "xtype": "tabpanel",
                    "items": [{
                    "xtype": "panel",
                    "title": "Event Tracking",
                    "widthLabel": "50",
                    "items": [{
                    "fieldLabel": "Event Tracking :",
                    "xtype": "dialogfieldset",
                    "items": [{
                    "fieldLabel": "Event Alias :",
                    "xtype": "textfield",
                    "name": eventAliasName,
                    "value": eventAliasValue
                    },  {
                    "fieldLabel": "Custom Variable 1 :",
                    "xtype": "textfield",
                    "name": variable1Name,
                    "value": variable1Value
                    },  {
                    "fieldLabel": "Custom Variable 2 :",
                    "xtype": "textfield",
                    "name": variable2Name,
                    "value": variable2Value
                    }]
                    }]
                    }]
                    }
                };

Viewing all articles
Browse latest Browse all 35

Trending Articles