EasyUI Forum
December 05, 2025, 04:01:48 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: determine easyui-type from DOM object  (Read 7307 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« on: March 31, 2016, 08:45:53 PM »

Is there a reliable way of finding the easui object type from the DOM object ?

Code:
console.log($('#some_id').euiType());
>> textbox
Logged

-- Licensed User --
korenanzo
Guest
« Reply #1 on: April 01, 2016, 08:11:19 AM »

I resolved this writing it down when I create the object:

//create
 $('#some_id').textbox({...})
$('#some_id').data('myType','textbox')


//using
console.log($('#some_id').data('myType'))

HTH,
RIc
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!