Show Posts
|
Pages: [1] 2 3 ... 5
|
3
|
General Category / EasyUI for jQuery / A bug for resize of tagbox.
|
on: June 27, 2019, 07:08:07 AM
|
A bug for resize of tagbox. a tagbox such as <input class="easyui-tagbox" style="width: 100%">, its size(width) fits well while dragging current window border. But it just does nothing when directly switching between the browser's Restore button and Maximize button. The tagbox's width won't change to fit unless dragging window border again.
|
|
|
5
|
General Category / EasyUI for jQuery / How to highlight a tag with hover?
|
on: June 22, 2019, 10:08:00 PM
|
How to highlight a tag with hover? How to change the color of a clicking tag like tree's action?
I can now just deal as follows t.next("span.textbox").on("mouseenter mouseleave", ".tagbox-label", function() { $(this).toggleClass('tagbox-hover'); }).on("click", ".tagbox-label", function() { $(this).addClass('tagbox-selected').siblings().removeClass('tagbox-selected'); });
|
|
|
7
|
General Category / EasyUI for jQuery / How to prevent tagbox from accepting invalid tag?
|
on: June 22, 2019, 09:07:51 PM
|
How to prevent tagbox from accepting invalid tag? for example, I want a tag's maxlength is 5, but the user input a tag such as 'easyui' which including 6 chars. I hope that tagbox NO ADD 'easyui' into values as a tag instead of showing a invalidMessage after added. Now I deal as follow, tagbox.textbox('textbox').bind('keydown', function(e){ if (e.keyCode == 13){ tagbox.textbox('setValue', $(this).val().length>5?'':$(this).val()); } });
|
|
|
|