Jump to content

How to change Time listvalues in TuniDbDateTimePicker


alfr

Recommended Posts

Hi, 

For system reasons the time value when change a ttime field by using the TUniDbDateTimePicker need to be hh:59 instead of the default values in the listbox hh:00, hh:15, hh:30, hh:45. How is it possible with js-code to replace the default listvalues with i . e "00:59","01:59","02:59"......"23:59"?

 

image.png.0fc276d0e48c34007f44669879ca7f87.png

UniGui Professional version 1.70.0.1489

Link to comment
Share on other sites

On 5/25/2019 at 12:28 PM, alfr said:

"00:59","01:59","02:59"......"23:59"?

Hi,

Can you try this approach?

function time.beforeInit(sender, config)
{
    config.increment=60;
}

function time.boxready(sender, width, height, eOpts)
{
    this.getStore().data.items.forEach(function(dt) {
        dt.data.date.setMinutes(59); 
        dt.data.disp = Ext.Date.format(dt.data.date, 'H:i:s');
    });
}

 

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