EasyUI Forum
April 29, 2024, 10:49:46 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: combotree limittolist  (Read 2226 times)
zombie86
Newbie
*
Posts: 24


View Profile WWW Email
« on: January 15, 2022, 04:09:10 AM »

Dear All,

hope you doing well, and wish you a good day too.

I would like to ask if I can apply limitToList Property, since I need to force only tree items to be selected

combotree has editable property with filter and it has keyboard navigation

your help is highly appreciated
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: January 16, 2022, 07:49:28 PM »

Please override the 'blur' event handler to achieve this feature.
Code:
$('#cc').combotree({
inputEvents: $.extend({}, $.fn.combo.defaults.inputEvents, {
blur: function(e){
var target = e.data.target;
var val = $(target).combotree('getValue');
$(target).combotree('setValue', val)
}
})
})
Logged
zombie86
Newbie
*
Posts: 24


View Profile WWW Email
« Reply #2 on: January 28, 2022, 08:56:36 AM »

thanks Jarry, it worked as expected  Kiss
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!