PP.Ui.RhombMarker (setting);
settings. JSON object that contains values of component properties.
The RhombMarker constructor creates an instance of the RhombMarker 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 diamond marker to the speedometer center:
<input TYPE="button" VALUE=" OK " ONCLICK="RMarks()"> <script> function RMarks() { var rmark = new PP.Ui.RhombMarker( { Border: {PPType: PP.SolidColorBrush, Color: "#aa0000"}, Size:15, Offset: -5, BorderWidth: 5 }); speed1.setCenter(rmark); } </script>
After clicking the OK button the marker shown in speedometer center changes as follows:
See also: