Wijmo UI for the Web
template Field
wijmo.gauge Namespace > radialgauge_cap Interface : template Field

A JavaScript callback value that returns a Raphael element (or set) that draws the cap for the pointer.

Syntax
var instance; // Type: wijmo.gauge.radialgauge_cap;
var value; // Type: Function
value = instance.template;
var template : Function;
Remarks
If you are only using one shape, the function returns a Raphael element. If you define multiple shapes, have the function create a Raphael set object push all of the Raphael elements to the set, and return the set to wijradialgauge. In order to use the template, you must know how to draw Raphael graphics. For more information, see the Raphael documentation. The cap template's callback contains one argument with two properties: origin -- The starting point from which to draw the center of the cap. This argument is defined by x and y coordinates. canvas -- A Raphael paper object that you can use to draw the custom graphic to use as the cap.
See Also

Reference

radialgauge_cap Interface