SetElementDesign (SetElementDesign)
Function to set the design for a selectable design element when manually implementing controls.
Melco.SetElementDesign(ElementName, DesignReferenceID);
Parameters
Name | Type | Default | Required | Description |
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. |
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
Name | Type | Default | Required | Description |
ElementName |
string |
|
true |
The element's name entered into name field in Fusion Admin. |
Text |
string |
|
true |
The text you'd like to set. |
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
Name | Type | Default | Required | Description |
ElementName |
string |
|
true |
The element's name entered into name field in fusion admin |
ColorName |
string |
|
true |
The Color you'd like to set |
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
Name | Type | Default | Required | Description |
ElementName |
string |
|
true |
The element's name entered into name field in Fusion Admin. |
FontName |
string |
|
true |
The Font you'd like to set. |
Selects the Font in personalization window.
SetBlankColor (SetBlankColor)
Function to set the blank color for a ready.
Melco.SetBlankColor(ColorName);
Parameters
Name | Type | Default | Required | Description |
ColorName |
string |
|
true |
The Color you'd like to set for product |
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
Name | Type | Default | Required | Description |
ViewName |
string |
|
true |
The View you'd like to set for the product. |
Selects the View as the current view in personalization window.