Jump to content

Recommended Posts

Posted

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.

Posted

Hello,

Try this approach:

procedure TMainForm.UniFormReady(Sender: TObject);
begin
  UniDateTimePicker1.JSInterface.JSConfig('hideTrigger', [True]);
  UniDateTimePicker1.JSInterface.JSAddListener('focus', 'function(me){me.expand()}');
end;

 

  • Like 1
Posted
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! :)

  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...