/*
 * File: app/view/RiskSearchToolBar.js
 *
 * This file was generated by Sencha Architect version 3.0.2.
 * http://www.sencha.com/products/architect/
 *
 * This file requires use of the Ext JS 4.2.x library, under independent license.
 * License of Sencha Architect does not include license for Ext JS 4.2.x. For more
 * details see http://www.sencha.com/license or contact license@sencha.com.
 *
 * This file will be auto-generated each and everytime you save your project.
 *
 * Do NOT hand edit this file.
 */

Ext.define('MyApp.view.RiskSearchToolBar', {
    extend: 'Ext.toolbar.Toolbar',
    alias: 'widget.RiskSearchToolBar',

    requires: [
        'Ext.form.field.ComboBox'
    ],

    layout: {
        type: 'hbox',
        align: 'stretch',
        pack: 'center'
    },

    initComponent: function() {
        var me = this;

        Ext.applyIf(me, {
            items: [
                {
                    xtype: 'combobox',
                    itemId: 'searchGroupCombo',
                    fieldLabel: 'Group',
                    labelAlign: 'right',
                    labelSeparator: ' ',
                    anyMatch: true,
                    minChars: 1,
                    queryDelay: 10,
                    store: 'SelectGroupStore',
                    typeAhead: true,
                    valueField: 'id'
                },
                {
                    xtype: 'triggerfield',
                    itemId: 'searchRiskIdTrigger',
                    fieldLabel: 'Risk ID',
                    labelAlign: 'right',
                    labelSeparator: ' ',
                    enforceMaxLength: true,
                    maskRe: /[0-9_]/,
                    maxLength: 5,
                    triggerCls: 'x-form-search-trigger'
                },
                {
                    xtype: 'triggerfield',
                    itemId: 'searchNameTrigger',
                    fieldLabel: 'Name',
                    labelAlign: 'right',
                    labelSeparator: ' ',
                    enforceMaxLength: true,
                    triggerCls: 'x-form-search-trigger'
                },
                {
                    xtype: 'triggerfield',
                    itemId: 'searchContentTrigger',
                    fieldLabel: 'Function/Tcode/Role',
                    labelAlign: 'right',
                    labelSeparator: ' ',
                    labelWidth: 150,
                    enforceMaxLength: true,
                    triggerCls: 'x-form-search-trigger'
                }
            ]
        });

        me.callParent(arguments);
    }

});