EasyUI Forum
May 15, 2024, 07:45:40 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: find element within panel as a options variable.  (Read 2594 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« on: May 20, 2020, 09:38:15 PM »


I am trying to find a hidden input in the panel and assign it as one of the options vars:

Code:
  $('#clsfilt').panel({
      _input      : $(this).find('input:hidden').first(),
      values      : [],
      cls         : 'jcfpan',
      collapsed   : true,
      collapsible : true,
      title       : 'Multi-Select',
      onCollapse  : function(){},
      onExpand    : function(){
        console.log('xxx'); 
      }
    })

But this of course does not work, how can I do this ?

Thanks
Logged

-- Licensed User --
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: May 30, 2020, 06:48:29 AM »

Please call this code instead.
Code:
$('#p').panel({
   //...
})
$('#p').panel('options')._input = $('#p').find('input:hidden').first()
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!