artem_niko Posted April 20 Posted April 20 Hello! How I can hide button and show calendar in UniDateTimePicker? I need show calendar when user enter in field. I mean, in event UniDateTimePicker.OnEnter show calendar, but hide button in right corner in this component. Quote
Sherzod Posted April 20 Posted April 20 Hello, Try this approach: procedure TMainForm.UniFormReady(Sender: TObject); begin UniDateTimePicker1.JSInterface.JSConfig('hideTrigger', [True]); UniDateTimePicker1.JSInterface.JSAddListener('focus', 'function(me){me.expand()}'); end; 1 Quote
artem_niko Posted April 20 Author Posted April 20 1 hour ago, Sherzod said: Hello, Try this approach: procedure TMainForm.UniFormReady(Sender: TObject); begin UniDateTimePicker1.JSInterface.JSConfig('hideTrigger', [True]); UniDateTimePicker1.JSInterface.JSAddListener('focus', 'function(me){me.expand()}'); end; It's working, thank you! 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.