RajeshChaudhary345 / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
0 stars 0 forks source link

Ability to style emptyText #170

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to be able to style the emptyText value differently than the 
text of selected items.  This would allow me to style that text as a grey 
italics to make it look more like an HTML5 placeholder.  I would suggest 
wrapping the emptyText in a span with class ui-dropdownchecklist-empty.

A possible workaround would be to include that wrapping span in my emptyText 
value, but the problem there is that the full HTML is placed in the title 
attribute of the ui-dropdownchecklist-text span.  I will create a separate 
issue specifically for that problem.

Original issue reported on code.google.com by garland....@gmail.com on 25 Mar 2011 at 7:18

GoogleCodeExporter commented 8 years ago
I will try to incorporate an extra class name into the emptyText with the next 
release

Original comment by womohun...@ittrium.com on 8 Apr 2011 at 5:43

GoogleCodeExporter commented 8 years ago
With the fix for issue 171, html marked text can be used as the 'emptyText' 
value, or as the return for the textFormatFunction. You can therefore apply any 
special styling you would like to the empty text.  The title attribute will 
display raw text properly, as can be seen on the testing page.

Original comment by womohun...@ittrium.com on 12 Apr 2011 at 9:28

GoogleCodeExporter commented 8 years ago
Fixed in 1.3

Original comment by womohun...@ittrium.com on 13 Apr 2011 at 4:46