Our powerful JS Calendar component


Post by SHQK »

I don't want to show picker every time click in TimeField,
But still decrease and increase time by click in icon-angle
So I set picker : null as below

endTimeField: {
      label: "",
      name: 'endDate',
      type: 'time',
      editable: false   ,
      picker: null  ,
      step: '15m'	                   
},

But when click in this Field, this occurred some error,
You can see detail in attachments,
Is there another way to disable this picker without error?

Attachments
bugPicker.PNG
bugPicker.PNG (18.04 KiB) Viewed 441 times

Post by mats »

Try:

endTimeField : {
                    label    : '',
                    name     : 'endDate',
                    type     : 'time',
                    editable : false,
                    triggers : {
                        expand : false
                    },
                    picker : {
                        listeners : {
                            beforeShow() {
                                return false;
                            }
                        }
                    },
                    step : '15m'
                },

Post by SHQK »

Thanks mats,
It's working
So sorry for late reply


Post Reply