Skip to main content
Oct 14, 2020 7:15 AM UTC
Solved

Datetimepicker

I want to give background color to datetimepicker widget in thingworx 8.5.2 version.

 

 

lbisaxAnswer
Oct 14, 2020 9:03 AM UTC

I could only test it on 8.5.6 but try to add this in the custom css part of your mashup and give your date time picker widget the custom class name (in my example "myClass"):

 

.myClass .widget-ptcsdatepicker::part(date-field-text-box) {
   background: #ff0000;
}

3 replies

lbisaxAnswer
Oct 14, 2020 9:03 AM UTC

I could only test it on 8.5.6 but try to add this in the custom css part of your mashup and give your date time picker widget the custom class name (in my example "myClass"):

 

.myClass .widget-ptcsdatepicker::part(date-field-text-box) {
   background: #ff0000;
}

Oct 14, 2020 12:13 PM UTC

I tried below css code.

 

.widget-ptcsdatepicker::part(date-field-text-box) {
   background: #ff0000;
}

 

It worked .Thanks