Jump to content

Colors in Dropdown list


scarlet knight

Recommended Posts

  • 2 years later...

I think this usecase can be achieved by modifying the css of the text area dropdown through Javascript.

You can find the class of dropdown property control throughdeveloper tools in Analyst client and inspect the HMTL to make changes to the CSS and there by modify the color of the values.But these values will be hardcoded.

To enable the Development Tools menu option, select Tools > Options, go to the Application page and select the 'Show development menu' check box. Now goto Tools - Development - Developer Tools -Console.

Using the class of the dropdown property control you can write the Javascript to change the color of elements in the dropdown.

---------------

You can add JavaScripts to a Text Area by Right Click- Edit HTML and select the JS icon then create a JavaScript and save it.

Similarly you can add CSS to your text area, Right Click- Edit HTML and you can write your CSS.

Below are some references:

https://docs.tibco.com/pub/spotfire/6.5.2/doc/html/text/text_details_on_...

https://community.spotfire.com/wiki/tibco-spotfirer-tips-and-tricks-buttons

https://community.spotfire.com/wiki/best-practices-writing-custom-javascrip...

--------------------

 

You can write JS something similar to the following post and have it implemented in spotfire.:https://forums.asp.net/t/1668984.aspxjavascript+function+to+change+an+element+s+color+in+dropdownlist

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...