Click or drag to resize

ComputeMethodResultBuildermarkToUpdateStyle Method

Mark to update the Property Item to change and pass a new style.

Namespace:  Aras.Modules.CMF.Public
Syntax
JavaScript
function markToUpdateStyle(propertyItemId, newStyle);

Parameters

propertyItemId
Type: string
see the "id" property of Aras.Modules.CMF.Public.PropertyItem.
newStyle
Type: Aras.Modules.CMF.PublicCmfStyle
Examples
JavaScript
var cmfElements = inArgs.factory.findDescendantElements('CMF Element Type Name');
if(cmfElements.length > 0) {
var cmfProperty = cmfElements[0].getPropertyItem("CMF Property Type Name");
var newStyle = inArgs.factory.createCmfStyle();
newStyle.textColor = "#BEBEBE";
inArgs.resultBuilder.markToUpdateStyle(cmfProperty.id, newStyle);
}
See Also