jQuery UI Widgets Forums Lists DropDownList dynamic colorizing

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 6 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • dynamic colorizing #99509

    dishmann
    Participant

    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.

    Rob

    dynamic colorizing #99612

    Hristo
    Participant

    Hello Rob,

    The widgets have themes and also, some of them have template property which provide more flexibility.
    Please, take a look at these demos:
    https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdropdownlist/dropdownlist-templates.htm?light
    https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxcombobox/combobox-templates.htm?light

    You could change the internal classes of the widgets, you could find out more information in this tutorial:
    https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxlistbox/jquery-listbox-styling-and-appearance.htm?search=list

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.