Open navigation

Element Parameters

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.

  

 



Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.