Topic
  • 1 reply
  • Latest Post - ‏2012-02-02T06:36:54Z by swu428
Fujikawa
Fujikawa
1 Post

Pinned topic widget control in view mode

‏2012-02-01T05:01:56Z |
Hi,

I'm developing iwidget in Mashup Center 3.0 and I have some questions about widget control in view mode.
In our application design, we want to make users can resize, move and close widget in view mode.
First thing, resizing widget in view mode, I found out how to do that as follows;

com.ibm.mashups.iwidget.services.ServiceManager.getService("eventService").broadcastEvent("com.ibm.mashups.builder.resizeWidget", {
"id" : this.iContext.widgetId,
"width" : width,
"height" : height
});

http://publib.boulder.ibm.com/infocenter/mashhelp/v3/index.jsp?topic=%2Fcom.ibm.help.mashups.dev.doc%2Fmash_dev_api_examples_widgets.html&resultof=%22broadcastEvent%22%20%22broadcastevent%22

I still have two questions

a) how to resize widget??
b) how to close widget??

Do you have any ideas to resolve these questions? I appreciate your help.
Thanks in advance.
Updated on 2012-02-02T06:36:54Z at 2012-02-02T06:36:54Z by swu428
  • swu428
    swu428
    4 Posts

    Re: widget control in view mode

    ‏2012-02-02T06:36:54Z  
    Yeah, I have the same question.
    Currently for move the widget, I manually set the top, left of the widget container using javascript.
    And I don't know how to close/minimize the widget.