AnsweredAssumed Answered

share dashlet resizer not working

Question asked by malliswar on Jun 4, 2015
hi all,


i am working on making a custom dashlet resizable– just like alfresco default dashlets

problem is i am able to resize the dashlet but after refreshing the page the dashlet is not persisting with the size
defined by Adminstrator

please help me

below is my code



<@script type="text/javascript" src="${url.context}/js/share.js" group="dashlets"/>
<@markup id="widgets">
   <@createWidgets group="dashlets"/>
</@>

<@markup id="html">

<div class="dashlet">

<div class="title"><font color=#0795D0><b>${msg("label.header")}</b></font></div>

<div class="body">
<div WebPartID="2891be58-82e0-4cb2-8738-2829fc954c70" HasPers="false" id="WebPartWPQ5" width="100%" class="ms-WPBody" allowDelete="false" style="" ><P><IMG style="BORDER-BOTTOM: 0px solid; BORDER-LEFT: 0px solid; BORDER-TOP:0px solid; BORDER-RIGHT: 0px solid" border=0 align=left img src="${url.context}/res/components/images/quotes.JPG"></P><br><br><SCRIPT type=text/javascript src="http://www.brainyquote.com/link/quotebr.js"></SCRIPT></div>

</div>
</div>

</@>



and below is my .js file




function main()
{

   var dashletResizer = {
      id : "DashletResizer",
      name : "Alfresco.widget.DashletResizer",
      initArgs : ["\"" + args.htmlid + "\"", "\"" + instance.object.id + "\""],
      useMessages: false
   };

   model.widgets = [dashletResizer];
}

main();
         

Outcomes