PP.Ui.TriangleMarker (setting);
settings. JSON object that contains values of component properties.
The TriangleMarker constructor creates an instance of the TriangleMarker class.
To execute the example, the page must contain the Speedometer component named speed1 (see Example of Creating a Fuel Gauge Unit). Add a button to the page, clicking which adds a triangle marker to the speedometer center:
<input TYPE="button" VALUE=" OK " ONCLICK="TMarks()"> <script> function TMarks() { var tmark = new PP.Ui.TriangleMarker( { Border: {PPType: PP.SolidColorBrush, Color: "#00ff00"}, Size:20, Offset: -5, BorderWidth: 5 }); speed1.setCenter(tmark); } </script>
After clicking the OK button the marker shown in speedometer center changes as follows:
See also: