cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Dropdown

krishnakomal123
14-Alexandrite

Dropdown

Thingworx : 8.5.2

 

Issue 1 : How do I set background color and font color for list item values before selection.I could not change default white background and black font color.

 

Issue 2 : I could not change opacity of colors.It is taking 1 for black.But I want to change it to 0.16.

 

Issue 3 : I could not change width of list items..

 

Please help me resolve the queries.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @krishnakomal123 

 

This custom css can do as well

 

ptcs-list::part(list-item){
background: yellow !important;
}

 

Regards

Christophe

 

View solution in original post

3 REPLIES 3

Hi @krishnakomal123 

 

You can change the background color of the rows by using a style Theme and apply it tot the mashup.

In the Style Theme define the desired color  under Elements > Grids and Lists > Lists and Dropdowns > Background > Main Row Background

 

The opacity is a known issue https://www.ptc.com/en/support/article/CS320384

 

The Dropdown widget does not allow to set the width , the legacy list widget does but it is legacy and may be deprecated soon. You can submit a Product idea to have this added in a future release.

 

Hope this helps

Regards

Christophe

 

krishnakomal123
14-Alexandrite
(To:cmorfin)

Is it possible to change it without style theme.Because if i use style theme it is impacting buttons and other widgets too.

Hi @krishnakomal123 

 

This custom css can do as well

 

ptcs-list::part(list-item){
background: yellow !important;
}

 

Regards

Christophe

 

Top Tags