jQuery UI Widgets › Forums › Lists › DropDownList › dynamic colorizing
This topic contains 1 reply, has 2 voices, and was last updated by Hristo 4 years, 11 months ago.
Authordynamic colorizing Posts
March 30, 2018 at 2:33 pm dynamic colorizing #99509
I don’t know where the proper place for this suggestion should go. I love the frameworks. I have always been able to make it work for me. (Especially with your help when I get stuck.)
Please make a consideration.
My web app I am using this frameworks for has a feature where I “highlight” inputs that the user has changed.
I am doing this by setting the jquery css background-color. Works great for standard inputs and check boxes. (I have no radio buttons or any of the truly fancy input widgets in this app) but… for comboboxes and dropdownlists setting the background color does not work. (for obvious reasons when we inspect the rendered html.) I did try to reference the superimposed widget “id” but it did not work. (Or I may be referencing the wrong element.)
There is an article in this forum that shows us how to do it modifying the widget css. [$.css(“.class_name”,…)] That worked. Still if a developer wanted to set the background color for a single combo/dropdownlist on a page that has more than one of those widgets, using the css class name approach is…well not an available option.
Perhaps there may be something in place to do what I need to that I have not found. (This project I am using jqx on is a personal side project. I wish I had the time to do a deep dive on all the code of the frameworks.)
I know it is hard to please all developers as much as we may try…
Possibly in future versions can we have a “method” where we can temporarily change the background color (or color for that matter) of an input widget (lets just focus on dropdown list/combo box for now) to something other than the color of the associated “theme” and then back to the theme color if we need to do that?
Thanks for your consideration.
RobApril 5, 2018 at 12:08 pm dynamic colorizing #99612
The widgets have themes and also, some of them have
templateproperty which provide more flexibility.
Please, take a look at these demos:
You could change the internal classes of the widgets, you could find out more information in this tutorial:
You must be logged in to reply to this topic.