SetElementDesign (SetElementDesign)

Function to set the design for a selectable design element when manually implementing controls.

Melco.SetElementDesign(ElementName, DesignReferenceID);

Parameters

NameTypeDefaultRequiredDescription
ElementName string true The element's name entered into name field in Fusion Admin.
DesignReferenceID string true The ReferenceID of design you'd like to set.



Output / Result

Changes the design for the element in personalization window.

SetElementText (SetElementText)

[Deprecated] Function to set the text for a lettering element when implementing controls manually. This method only supports chaging first line of text i.e. if Text element contains multiple text line then calling this method will change only first line.Refer SetTextElement for more options.

Melco.SetElementText(ElementName, Text);

Parameters

NameTypeDefaultRequiredDescription
ElementName string true The element's name entered into name field in Fusion Admin.
Text string true The text you'd like to set.



Output / Result

Changes the text for the element in personalization window.

SetElementColor (SetElementColor)

Function to set color for a lettering element when implementing input controls manually.

Melco.SetElementColor(ElementName,ColorName);

Parameters

NameTypeDefaultRequiredDescription
ElementName string true The element's name entered into name field in fusion admin
ColorName string true The Color you'd like to set



Output / Result

Change the element color in personalization window.

SetElementFont (SetElementFont)

Function to set the font for a lettering element when implementing controls manually.

Melco.SetElementFont(ElementName, FontName);

Parameters

NameTypeDefaultRequiredDescription
ElementName string true The element's name entered into name field in Fusion Admin.
FontName string true The Font you'd like to set.



Output / Result

Selects the Font in personalization window.

SetBlankColor (SetBlankColor)

Function to set the blank color for a ready.

Melco.SetBlankColor(ColorName);

Parameters

NameTypeDefaultRequiredDescription
ColorName string true The Color you'd like to set for product



Output / Result

Selects the Color as current color in the personalization window.

SetBlankView (SetBlankView)

Function to set the blank color for a ready.

Melco.SetBlankView(ViewName);

Parameters

NameTypeDefaultRequiredDescription
ViewName string true The View you'd like to set for the product.



Output / Result

Selects the View as the current view in personalization window.
Version: 3.6.277.0