Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 20, 2014 @ 12:37
    Ismail Mayat
    0

    Time in date picker

    Gilad,

    Excellent package, using it on a site at the moment. One question for the datepicker i want to also have time, so can i just update u7dtg.controller.js

            var dtgDatePicker = {
            alias: 'u7dtgDatePicker',
            label: '',
            description: '',
            view: 'datepicker',
            config: {
                format: 'yyyy-MM-dd',
                pickTime: false
            }
        };
    

    and set the pickTime to true and that would show time?

  • gilad 185 posts 425 karma points
    Mar 20, 2014 @ 13:51
    gilad
    0

    Hello Ismail,

    I had some problems with the time picker, that why i didn't add this option to the prevalue settings.
    I'll add this option for time picker in the date picker prevalues next version.

    Meanwhile -  yes. set the pickTime to true, but you have to change also the format ( from the u7dtg.controller.js or from the grid data type settings ) for using the time variables.
    For example - set the format to :  yyyy-MM-dd hh:mm:ss

    Also - add this lines to the end of  'u7dtg.style.css' :
    .dtgTable .umb-datepicker .datepicker .icon-time {position:relative;top:0px;left:-3px;background:none;}
    .dtgTable .umb-datepicker .datepicker .icon-time:hover {display:block!important;}

    Hope that help.
    Cheers. 


     

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 20, 2014 @ 14:32
    Ismail Mayat
    0

    gilad,

    Awesome many thanks for this.

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft