VMware {code} Community
dharmeshj
Enthusiast
Enthusiast

SummaryViews Extension Height & Width of Portlet is not Reflecting in Plugin Mode

I am using an extension (as given below) to show an portlet in plugin mode. In this extension i am using a <dialogSize> Property to increase height and width of portlet. But height & width is not reflecting in plugin mode. and appearing with it's default height and width

<extension id="com.vmware.samples.vspherewssdk.datastore.summary">

  <extendedPoint>vsphere.core.datastore.summarySectionViews.html</extendedPoint>

  <object>

  <name>#{summaryView.title}</name>

  <contentSpec>

        <url>/ui/vspherewssdk/resources/vm-summary.html</url>

        <dialogSize>440,400</dialogSize>

  </contentSpec>

  </object>

</extension>

Note: I am using V-Center Server 6.5U2.

Please provide some guidance.

Thanks in Advance

Regards

Dharmesh

4 Replies
stoevm
VMware Employee
VMware Employee

Hi dharmeshj,

The dialogSize is a legacy API targeted at plugins supporting vSphere Web Client (Flex).

For HTML Plugins the <size> tag can be used where:
the width 1 is the only supported value at the moment,
height can be 1 (default) or 2 (portlet with doubled content area, excluding the title)

Here is a working example of the extension point.
<extension id="com.vmware.samples.vspherewssdk.datastore.summary">
   <extendedPoint>vsphere.core.vm.summarySectionViews</extendedPoint>
   <object>
      <name>#{summaryView.title}</name>
      <contentSpec>
         <url>/ui/vspherewssdk/resources/vm-summary.html</url>
         <size>
            <width>1</width>
            <height>2</height>
         </size>
      </contentSpec>
   </object>
</extension>

Best,
Martin
kumartade
Enthusiast
Enthusiast

Is this applicable for vSphere Client v6.5U2?

Is there a updated documentation for these?

Reply
0 Kudos
dharmeshj
Enthusiast
Enthusiast

Hi Stoevm,

Thanks, It is working as expected.

Regards

Dharmesh

Reply
0 Kudos
_vladi_
VMware Employee
VMware Employee

Indeed, this is not properly documented and we will make sure this is added to the programming guide in the future.

Thanks.

Cheers,

Vladi

Reply
0 Kudos