PP.Ui.SectorArrow(settings);
settings. JSON object that contains values of component properties.
The SectorArrow constructor creates an instance of the SectorArrow 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 sector pointer:
<input TYPE="button" VALUE="ArrowConstructor" ONCLICK="ArrowConstructor()"> <script> function ArrowConstructor() { var arrow = new PP.Ui.SectorArrow({ StartValue: 1, EndValue: 9, Background: { PPType: "PP.SolidColorBrush", Color: "orange" } }); speed1.getScales(1).getArrows().unshift(arrow); speed1.getScales(1).render(speed1, this); } </script>
Clicking the ArrowConstructor button adds a sector pointer:
See also: