EasyUI Forum
April 29, 2024, 03:32:48 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: dialog as jquery popup function  (Read 2696 times)
WizPS
Jr. Member
**
Posts: 67


View Profile
« on: November 07, 2020, 08:33:27 AM »

I'm looking for a way to make jquery popup filling it with text, datagrid or any easyui plugin content.

Code I want to write is:
Code:
using(['my_popup', 'datagrid','propertygrid'], function () {
   $.my_popup().datagrid({});
   $.my_popup().propertygrid({});
   $.my_popup().text({});
});

my_popup function looks like this:
Code:
(function ($) {
   jQuery.my_popup = function (opt) {
      using(['dialog'], function () {
         var ret = $('<div/>').dialog(opt);
      });
      return this;
   };
})(jQuery);
however it does not display the datagrid, propertygrid or text in the popup but says
$.my_popup(...).datagrid is not a function.
Please advice.
Logged
sky-t
Full Member
***
Posts: 145


View Profile
« Reply #1 on: November 08, 2020, 01:29:48 PM »

Hi WizPS,

maybe you have to parse the component after creating with

$.parser.parse(your component id, class, etc);


Greetings,

sky-t
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!