angela9
(angela Zizic)
December 11, 2016, 5:25pm
1
I am working with Vaadin 7.6 and multiselect combobox.
I tried to change sign on combobox button for selection by rotation animation (from arrow down in arrov up an reverse), but I could not do that.
whether someone can help me ?
Thanks
ollit.1
(Olli Tietäväinen)
December 12, 2016, 6:15am
2
angela9
(angela Zizic)
January 31, 2017, 3:57pm
3
Hi
I solved problem with rotation arrow on multiselects combo button.
In class : …SessionInitListener I added next jquery function :
head.appendElement(“script”).append(“$(document).on(‘click’, ‘div.v-filterselect-button’,function()”
“{ var attr = $(this).parent().attr(‘checked’);”
//+ " $(this).parent().removeClass( "combobox-rotate-down" ); "
+" { $(this).parent().attr("checked","true");"
" $(this).css({‘transform’: ‘rotate(180deg)’,‘border-right’: ‘1px solid #999999 ’,‘border-left’: ‘none’});"
" }"
"else "
"{if(attr == ‘checked’) "
+" { $(this).css({‘transform’: ‘none’,‘border-left’: ‘1px solid #999999 ’,‘border-right’: ‘none’});"
+" $(this).parent().removeAttr("checked");}"
+" $(this).parent().attr("checked","true");}"
head.appendElement(“script”).append(“$(document).on(‘blur’, ‘.v-filterselect’,function()”
+" { $(this).children().css({‘transform’: ‘none’,‘border-left’: ‘1px solid #999999 ’,‘border-right’: ‘none’});"
+" $(this).removeAttr("checked");"