Jump to content

DateTimePicker limit time comboBox


lema

Recommended Posts

Hello,
Is there any way to limit the showing items in time portion of the uniDateTimePicker (eg. 09:00' - 15:00')?
Also, can we change the step ? (eg. 30 min instead of 15 min) ?

UniGUI v.1.90.0.1537 (Delphi 10.2)

TIA,
Lefteris

 

image.png.c1b9b043bb5f04179e40e288de6e2130.png

Link to comment
Share on other sites

  • 7 months later...

 

Hello, I have a strange behavior with the UniDateTimePicker.

If you add the following code on uEdits of MegaDemo and play around for a while,

the error "The time in this field must equal to or after 09:00:00" will popup !

Delphi 10.2

uniGUI 1.90.0.1549

 

procedure TuEditsFrame.UniFrameCreate(Sender: TObject);
begin
  UniDateTimePicker2.ClientEvents.UniEvents.Values['beforeInit'] :=
    'function beforeInit(sender, config)' +
    '{' +
    '  config.minValue  = ''09:00''; ' +
    '  config.maxValue  = ''15:00''; ' +
    '}';
end;

 

UniDateTimePicker.jpg.9fa4977fd288f42e809f43463cce19e1.jpg

Link to comment
Share on other sites

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...