Skip to content

Infragistics Community Forum / Web / Ignite UI for Angular / How can i modify igx-timepicker display

How can i modify igx-timepicker display

New Discussion
Angular Boy
Angular Boy asked on Feb 22, 2021 11:05 AM

I am wondering about 2 things on the time picker.

a) Is there a way to remove on the drop down the left bar and also how can i get rid of the :0 after the Min ?

b) if the value of the control is empty, how can i set the initial value when user clicks on control 

Sign In to post a reply

Replies

  • 0
    Plamena Miteva
    Plamena Miteva answered on Feb 19, 2021 12:17 PM

    Hi Angular Boy,

    To remove the calendar header you can set the time picker mode to dropdown. In dialog mode it is always present and the only thing you can change is its position by setting the vertical property.

    To exclude the trailing zero from the minutes you can set the format property.

    You can set the control's value by specifying a click handler:

    and then implement the handler in the component:

    public setValue(){
       this.tp.value = new Date(2021, 3, 3, 10, 15, 0);
      }

    • 0
      Angular Boy
      Angular Boy answered on Feb 19, 2021 10:15 PM

      I am a bit confused, based on the docs the default format is hh:mm tt so where does the 0 after the minute come from ? It also shows on your sample page if you click the time picker.

      https://www.infragistics.com/products/ignite-ui-angular/angular/components/time-picker

      • 0
        Plamena Miteva
        Plamena Miteva answered on Feb 22, 2021 11:05 AM

        Yes, this seems to be a bug since the header is always displaying the hours, minutes and seconds disregarding the selected format.

        Since the igxTimePicker component is in the process of refactoring the fix will be included in it too. The release version containing the fix is expected in mid April. 

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Angular Boy
Favorites
0
Replies
3
Created On
Feb 22, 2021
Last Post
5 years, 8 months ago

Suggested Discussions

Created by

Created on

Feb 22, 2021 11:05 AM

Last activity on

Feb 22, 2021 11:05 AM