EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sky-t on November 21, 2016, 01:43:08 PM



Title: combobox mousepointer
Post by: sky-t on November 21, 2016, 01:43:08 PM
Hi there,

is there a possibility to have the hand pointer when moving the mouse over combobox entries?
Would look nicer, i think.



Thanks


Title: Re: combobox mousepointer
Post by: stworthy on November 21, 2016, 05:06:46 PM
No, the editable combobox should have the text cursor on the inputing box.


Title: Re: combobox mousepointer
Post by: sky-t on November 21, 2016, 11:31:49 PM
ah, okay - and what's about non-editable comboboxes? Is there a chance to show hand mousepointer?


Title: Re: combobox mousepointer
Post by: stworthy on November 22, 2016, 03:35:40 AM
Please add this code to your page.
Code:
<style type="text/css">
.combo .validatebox-readonly{
cursor: pointer;
}
</style>


Title: Re: combobox mousepointer
Post by: sky-t on November 23, 2016, 12:14:19 AM
Thanks stworthy,

but this just works with the selected entry. The entries in the list have the texting mousepointer.
Is the a chance to use hand mousepointer also for the entries in the list?


Thank you very much


Title: Re: combobox mousepointer
Post by: stworthy on November 23, 2016, 12:23:10 AM
You can override the 'combobox-item' class with 'cursor:pointer' style.
Code:
<style type="text/css">
.combo .validatebox-readonly{
cursor: pointer;
}
.combobox-item{
cursor: pointer;
}
</style>


Title: Re: combobox mousepointer
Post by: sky-t on November 23, 2016, 01:42:05 AM
This is working fine! Awesome!!

Thank you stworthy!