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:
using(['my_popup', 'datagrid','propertygrid'], function () {
$.my_popup().datagrid({});
$.my_popup().propertygrid({});
$.my_popup().text({});
});
my_popup function looks like this:
(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.