POST
|
Hello, So I am building a widget and I would like that when I click a button in my widget to open another on-screen panel with my on html content. I need to drag and close this panel. Is this possible? Thanks!
... View more
11-15-2016
07:43 AM
|
0
|
2
|
771
|
POST
|
Yes, this works, thanks for your answer. But I really wanted to make my plugin independent so I can export it and use it in other apps, so I ended up combining all the libraries in a single file.
... View more
10-20-2016
11:55 PM
|
0
|
0
|
1407
|
POST
|
So I am trying to build a widget which uses some jQuery plugins(jquery ui, jquery mobile and so on). The problem is that I can't figure out how to load this plugins. If i put the plugins in the dependencies array it doesn't work because jQuery isn't loaded first. define(['dojo/_base/declare', 'jimu/BaseWidget',
'jimu/loaderplugins/jquery-loader!https://code.jquery.com/jquery-git1.min.js',
'./lib/jquery.mobile.min', './lib/jquery.ui.min'],
function(declare, BaseWidget, $){
return declare(BaseWidget, {
startup: function(){
var map = this.map;
$('.jimu-widget-use-jquery .map-id').click(function(){
alert(map.id);
});
$('.jimu-widget-use-jquery .my-title').text('title added by jquery.');
}
}); Any tips on how can I achieve this? Thanks
... View more
10-18-2016
12:09 AM
|
0
|
3
|
3825
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|