{
    "type": "Ext.window.Window",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "designer|userAlias": "selectMultiApproversWindow",
        "designer|userClassName": "selectMultiApproversWindow",
        "height": null,
        "icon": "../gfx/sod_warn_4-0.png",
        "itemId": "selectMultiApproversWindow",
        "layout": "fit",
        "manageHeight": null,
        "maxHeight": null,
        "modal": true,
        "title": "Select approvers",
        "width": 596
    },
    "designerId": "2603879c-1932-4c18-b29c-31f9d38e3f1c",
    "cn": [
        {
            "type": "Ext.container.Container",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "autoRender": true,
                "autoScroll": null,
                "height": null,
                "layout": "fit",
                "maxHeight": null,
                "minHeight": null
            },
            "designerId": "6ea601f0-2fc4-4764-93fa-f00bf74ff06f",
            "cn": [
                {
                    "type": "Ext.grid.Panel",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "autoScroll": true,
                        "enableColumnHide": false,
                        "enableColumnMove": false,
                        "enableColumnResize": false,
                        "frameHeader": null,
                        "header": false,
                        "height": 250,
                        "itemId": "selectMultiApproversGrid",
                        "manageHeight": null,
                        "margin": null,
                        "maxHeight": null,
                        "minHeight": null,
                        "scroll": "vertical",
                        "store": "SelectApproverStore",
                        "title": "My Grid Panel",
                        "width": null
                    },
                    "designerId": "4fbcaa16-4ea0-4c71-a6c1-b50f0e4f75f3",
                    "cn": [
                        {
                            "type": "Ext.grid.column.Column",
                            "reference": {
                                "name": "columns",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "dataIndex": "text",
                                "flex": 1.5,
                                "sortable": true,
                                "text": "Approver"
                            },
                            "designerId": "5d840623-2e15-41a4-9395-a87ade54f040"
                        },
                        {
                            "type": "Ext.grid.column.Column",
                            "reference": {
                                "name": "columns",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "dataIndex": "user",
                                "flex": 1,
                                "sortable": true,
                                "text": "Username"
                            },
                            "designerId": "abfa2a7a-abf3-441e-84b3-5afdf429eff1"
                        },
                        {
                            "type": "Ext.grid.column.Column",
                            "reference": {
                                "name": "columns",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "dataIndex": "substitute",
                                "flex": 1,
                                "sortable": true,
                                "text": "Substitute"
                            },
                            "designerId": "1c01cdf6-e7a8-4b0e-a19a-abf07d40ec48"
                        },
                        {
                            "type": "Ext.grid.View",
                            "reference": {
                                "name": "viewConfig",
                                "type": "object"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "minHeight": null,
                                "saveDelay": null
                            },
                            "configAlternates": {
                                "loadMask": "boolean"
                            },
                            "designerId": "8a0cc1d4-3c5a-44f0-a552-41069bd46c98"
                        },
                        {
                            "type": "Ext.selection.CheckboxModel",
                            "reference": {
                                "name": "selModel",
                                "type": "object"
                            },
                            "codeClass": "Ext.selection.CheckboxModel",
                            "userConfig": {
                                "checkOnly": true
                            },
                            "designerId": "e82a142f-9c25-48ee-bb17-efe3aef02795"
                        },
                        {
                            "type": "processcfgfunction",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "designer|params": [
                                    "config"
                                ],
                                "fn": "processSelectMultiApproversGrid",
                                "implHandler": [
                                    "config.viewConfig = {\r",
                                    "    getRowClass: function(record, index) {\r",
                                    "        if (record.get('id') === '0' || Ext.isEmpty(record.get('user'))) {\r",
                                    "            return 'display-false';\r",
                                    "        }\r",
                                    "    }\r",
                                    "};\r",
                                    "return config;"
                                ]
                            },
                            "designerId": "00634cc3-f396-497b-ad47-39b53b1676cc"
                        }
                    ]
                }
            ]
        },
        {
            "type": "Ext.container.Container",
            "reference": {
                "name": "dockedItems",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "container|align": "stretch",
                "dock": "bottom",
                "layout": "hbox"
            },
            "designerId": "0a2f12e3-4d51-4dde-b2e4-7a922776d4d6",
            "cn": [
                {
                    "type": "Ext.container.Container",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "container|align": "stretch",
                        "container|pack": "center",
                        "layout": "vbox",
                        "layout|flex": null
                    },
                    "designerId": "824557df-7b45-4b20-bf31-3a9b660341ee",
                    "cn": [
                        {
                            "type": "Ext.form.field.Number",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fieldCls": "x-form-field, numberField",
                                "fieldLabel": "Minimum number of approvers",
                                "height": null,
                                "itemId": "selectMultiApproversMinimumNumber",
                                "labelAlign": "right",
                                "labelSeparator": " ",
                                "labelWidth": 200,
                                "layout|flex": 0,
                                "maxHeight": 22,
                                "minValue": 1,
                                "value": [
                                    "1"
                                ],
                                "width": 245
                            },
                            "designerId": "c44f9cb9-e102-4832-a4e1-57a805274c25"
                        }
                    ]
                },
                {
                    "type": "Ext.toolbar.Spacer",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": 1
                    },
                    "designerId": "cac01bf0-b0ae-4210-9fc3-1756290a930f"
                },
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "disabled": null,
                        "icon": "../gfx/save.png",
                        "iconAlign": null,
                        "itemId": "selectMultiApproversDoneButton",
                        "layout|flex": 0.6,
                        "layout|margins": "10 10 10 10",
                        "padding": "5 10 5 10",
                        "scale": "medium",
                        "text": "Save changes",
                        "width": null
                    },
                    "designerId": "6e71662e-7503-40fd-921a-9c75adea2a26"
                }
            ]
        }
    ]
}