Hi All,
Anyone knows how to make a timepicker similar to the DatePicker example, but without the date/month/year columns (actually just need two columns for BreakMinutes and ExtraMinutes)?

Here is part of the code for columns (modified from DatePicker example), don't know whether it works (and how to make this work?):

Javascript code (BreakTimePicker.js):
Code:
Ext.ux.BreakTimePicker = Ext.extend(Ext.Picker, {

    bminuteText: 'Main break (minutes)',
    eminuteText: 'Extra break (minutes)',

    slotOrder: ['breakminute', 'extraminute'],
    initComponent:function() {
        var breakmins = [],
            extramins = [],
            i
  
        for(i=15;i<=45;i+=15){
            breakmins.push({
                text: i,
                value: i
            });
        }
        
        for(i=0;i<=5;i+=1){
            extramins.push({
                text: i,
                value: i
            });
        }
               
        this.slots = [];
        Ext.each(this.slotOrder, function(item){
            this.slots.push(this.createSlot(item,breakmins,extramins));
        }, this);

    
    createSlot: function(name, breakmins,extramins){
        switch(name){
            case 'breakminute':
                return {
                    name: 'breakminute',
                    align: 'center',
                    data: breakmins,
                    title: this.useTitles ? this.bminuteText : false,
                    flex: 2
                };
        
            case 'extraminute':
                return {
                    name: 'extraminute',
                    align: 'center',
                    data: extramins,
                    title: this.useTitles ? this.eminuteText : false,
                    flex: 3
                };
            }
    },
And I want to set timer based on the sum of the values (t1+t2) chosen in column BreakMinute(t1) and ExtraMinute(t2). Can anyone give some ideas about how to get the sum and set the timer (better have some codes for ease of understanding)?

Many Thanks.