Show cool things you have done with our products


Post by tinu »

Hello,

I would like to do the following things to the scheduler
1.add buttons on the scheduler to change the viewPreset values for scheduler and availabilitystore and staffscheduler.
2.Add a form with from and to input fields which will influence the values in the scheduler.

Can you please provide some tips and hints?

Thanks,
Tinu

Post by jakub »

Regarding point 1 : check this example https://bryntum.com/examples/scheduler-l ... ation.html.

As for point 2, here's a sample config for buttongroup with two inputs :
{
    xtype: 'buttongroup',
    title: 'Form',
    pack: 'center',
    layout: {
        type: 'vbox',
        align: 'left'
    },
    columns: 2,
    items: [                    
        {
            xtype : 'textfield',
            fieldLabel : 'From',
            scope : this,
            enableKeyEvents : true,
            listeners : {
                keyup : {
                    fn : function(field, e) {
                        var value   = field.getValue();
                        //your action here
                    },
                    scope : this
                }
            }
        },
        {
            xtype : 'textfield',
            fieldLabel : 'To',
            scope : this,
            enableKeyEvents : true,
            listeners : {
                keyup : {
                    fn : function(field, e) {
                        var value   = field.getValue();
                        //your action here
                    },
                    scope : this
                }
            }
        }                    
    ]
},
JavaScript/Angular/ExtJS consulting - kuba@virtualdesign.pl

Post by tinu »

Hello Jakub,

Thank you very much for your reply.

Tinu

Post Reply