Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

alternative for action script(mediator class) for a html plugin

$
0
0


I am working on a sample html plugin (solution application) for which i created a custom template with an attachment point. now when i am trying to load the application workspace from shortcut then the extension which is hosted by the attachment point of the template is opening a action script(.as file), which in turn will open the whole workspace. but since we cant action scripts directly from extensions , how to do it in HTML plugin. i am providing some code part.


<!--defining a custom template>


<template id="company.project.categoryExtensionPointsTemplate">


      <variable name="namespace" required="true"/>


      <variable name="attachmentPoint" required="false"


         defaultValue="company.project.categoryViews"/>


      <variable name="summaryHeaderView" required="false"/>


&lt;!some extensions and extension points defined here&gt;

 

<template id="proximaldata.autocache.templates.categoryExtensionPointsTemplate">



      <variable name="namespace" required="true"/>



      <variable name="attachmentPoint" required="false"



         defaultValue="proximaldata.autocache.categoryViews"/>



      <variable name="summaryHeaderView" required="false"/>




</template>


<!-- the main application-->


<extension id="company.project.domainView">


      <extendedPoint>vise.global.views</extendedPoint>


      <hostedPoint>company.project.categoryViews</hostedPoint>


      <object>


         <name>applicatinName</name>


         <icon>#{small.icon}</icon>


         <componentClass className="com.company.project.views.MainView"/> 


      </object>


   </extension>


 


the component class here is provided the name of a action script which will load the workspace in the main area. but in html plugin how to do this.


any help or direction in this regard will be appreciated


thanks


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>