pui.widgets.getPanelProxy( defaults )
This API returns a drag-and-drop proxy element for a panel widget based on a set of default panel widget properties. It should be used on the proxyHTML configuration option of the pui.toolbox.add() API.
Parameter:
defaults object - list of default properties for the panel; the defaults object is automatically provided by the pui.toolbox.add() API so it can be used with the proxyHTML configuration option
Example:
pui.toolbox.add({
category: "Custom Widgets",
widget: "panel",
text: "Custom Panel",
icon: "/profoundui/proddata/images/panels/Custom Panel/icon.png",
proxyHeight: 100,
proxyWidth: 200,
proxyHTML: function(defaults) {
return pui.widgets.getPanelProxy(defaults);
},
defaults: {
"panel style": "Custom Panel",
"color": "#000000"
}
});
Some documentation pages have recently moved to a new section: Profound AppDev. If you are having trouble finding specific pages, try the documentation search capability or reach out to our Support team!