Element Parameters

Modified on Thu, 27 Jul, 2023 at 12:27 PM

With element parameters you control the behavior and properties of an element, e.g. if it can be dragged or the position on the stage. These can be set for a group of elements or for every element separately.

Where can I set these parameters?

1. Change the default parameters via the plugin call

The first level to change all default parameters are the plugin options. There you will find 4 options to change the common, text, custom image and custom text parametes:  

new FancyProductDesigner(document.getElementById('fpd-target'), 
  elementParameters: {draggable: true},
  textParameters: {textSize: 16},
  customImagesParameters: {minW: 1000, minH: 2000},
  customTextParameters: {removable: true}


2. Parameters object for products and designs

As mentioned in the Getting Started guide you set up your products and designs via a JSON file. Here you have all of your initial elements defined and in the parameters object you can define individual properties for single elements.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article