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

How to specify an action extension to open Modal without title and Close button in Plugin.xml

$
0
0

Hi Team,

 

Im trying to define and action extension without title and close button on plugin.xml by not specifying the dialogTitle tag.

But it is adding padding and close button(highlighted in red color) as shown below:

Result:

modal_no_title_issue.png

Expectation:

 

Sample extension code Snippet:

<extension id="com.acme.myhtmlplugin.datastore.provisioning.actions">

        <extendedPoint>vise.actions.sets</extendedPoint>

        <object>

            <actions>

                <com.vmware.actionsfw.ActionSpec>

                    <uid>com.acme.myhtmlplugin.provisionDatastore</uid>

                    <label>#{DatastoreProvision.action.label}</label>

                    <delegate>

                        <className>com.vmware.vsphere.client.HtmlPluginModalAction</className>

                        <object>

                            <root>

                                <actionUrl>/ui/myhtmlplugin/index.html?view=datastore-provisioning</actionUrl> //No DialogTitle

                                <dialogSize>1152,455</dialogSize>

                            </root>

                        </object>

                    </delegate>

                </com.vmware.actionsfw.ActionSpec>

            </actions>

        </object>

        <metadata>

            <objectType>Datacenter,ClusterComputeResource,HostSystem</objectType>

        </metadata>

    </extension>

 

 

I could achieve the desired behavior using API programmatically by passing title=null and closable=false in modal config.

 

 

How to achieve the same thing in plugin.xml ?

 

 

SDK Details:

vSphere SDK: using vSphere New JS 6.5U2 SDK.

 

Thanks,

Kumar


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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