Add Barchart Properties for Check Syntax Validation
- Last UpdatedNov 15, 2023
- 1 minute read
The following code represents how to add the "Barchart" properties along with the other common properties for check syntax validation.
(function ()
{
var standardControlMembers = Skelta.forms.constants.controlsCollection;
var genericControlFunctions = Skelta.forms.constants.controlFunctions;//genericControlFunctions
has properties - nonContainerFunctions and containerFunctions which is a collection
of function names [{ name: "functionName"}]
var barchartMembers = {
functions: genericControlFunctions.nonContainerFunctions,//.concat([{ name: "functionName" }
isContainerControl: false,
controlType: "Barchart",
properties: [{ propertyName: "xmlNodeBoundTo", propertyType: "2", isWritable: false },
{ propertyName: "tagName", propertyType: "0", isWritable: true },
{ propertyName: "id", propertyType: "2", isWritable: false },
{ propertyName: "value", propertyType: "0", isWritable: true },
{ propertyName: "isMandatory", propertyType: "0", isWritable: true },
{ propertyName: "readOnly", propertyType: "0", isWritable: true },
{ propertyName: "enable", propertyType: "0", isWritable: true },
{ propertyName: "itemsData", propertyType: "2", isWritable: true },
{ propertyName: "seriesData", propertyType: "2", isWritable: true },
{ propertyName: "colorsData", propertyType: "2", isWritable: true }]
}
standardControlMembers.push(barchartMembers);
})();
In the example, the "itemsData", "seriesData", and "colorsData" properties are nonobservable variables, indicated by propertyType: "2" and isWritable: true respectively in the above code.
For more information on the usage of the above code, see Adding Custom Controls for Check Syntax Validation.