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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! 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.

 

 

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

 

Announcements


Top Tags