VMware {code} Community
kumartade
Enthusiast
Enthusiast
Jump to solution

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

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:

pastedImage_1.png

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.

pastedImage_2.png

pastedImage_3.png

How to achieve the same thing in plugin.xml ?

SDK Details:

vSphere SDK: using vSphere New JS 6.5U2 SDK.

Thanks,

Kumar

0 Kudos
1 Solution

Accepted Solutions
Plam_Dimitrov
VMware Employee
VMware Employee
Jump to solution

Hi Kumar,

The closable property defaults to "true", so please explicitly say <closable>false</closable> in your plugin.xml. This should also get rid of the paddings.

Regards,

Plam

View solution in original post

0 Kudos
1 Reply
Plam_Dimitrov
VMware Employee
VMware Employee
Jump to solution

Hi Kumar,

The closable property defaults to "true", so please explicitly say <closable>false</closable> in your plugin.xml. This should also get rid of the paddings.

Regards,

Plam

0 Kudos