Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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"
  }
});
  • No labels