ehynds / jquery-ui-multiselect-widget

jQuery UI MultiSelect widget

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customize message and add style to max selected message displayed.

Sagar-Sobti opened this issue · comments

What is the current behavior?

In current version, you can not change the font color of max selected message that is displayed and message is not configurable.

What is the expected behavior?

Please add options to set custom message and class for styling the message.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo

Common options for demos are jsfiddle and codepen

If you are requesting a new or changed feature, please provide a rationale

Sometime we want to display max selected message is red color and base color of button message is changed to gel with theme of website.

Will you submit a corresponding Pull Request to fix the bug or implement the feature?

I modified the line# 930 to
self.buttonMessage("<center style='color:red'><b>LIMIT OF " + (numChecked - 1) + " REACHED!</b></center>");
to make message red. I know this is not the best way to do, but it is a quick fix for me.

Please tell us about your setup

  • Version: jQuery UI MultiSelect Widget 3.0.0
  • Browser: IE and Chrome
  • Other frameworks in use: ASP.Net