SOURCE CODE: Uize.Templates.Calculator (view docs)

<%@ input ({idPrefix:'string'}) %><%/* Module Meta Data
  type: Template
  importance: 2
  codeCompleteness: 100
  docCompleteness: 100
*/%><%/*?
  Introduction
    The =Uize.Templates.Calculator= module generates HTML that can be used for instances of the =Uize.Widget.Calculator= class.

    *DEVELOPERS:* `Chris van Rensburg`

    The =Uize.Templates.Calculator= module is a JavaScript Template Module that is automatically generated by a build script from a companion =Uize.Templates.Calculator.js.jst= JavaScript Template (.jst) file.

  Static Methods
    Uize.Templates.Calculator.process
      Returns a string, being the generated HTML that is to be used by an instance of the =Uize.Widget.Calculator= class (or subclass).

      SYNTAX
      ..............................................................
      widgetHtmlSTR = Uize.Templates.Calculator.process (inputOBJ);
      ..............................................................

      The value of the =inputOBJ= parameter should be an object of the form...

      ........................
      {
        idPrefix: idPrefixSTR
      }
      ........................

      idPrefix
        A string, specifying the value of the =idPrefix= state property of the widget instance that uses this module to generate its HTML.

  Static Properties
    Uize.Templates.Calculator.input
      An object, describing the allowed properties of the =inputOBJ= parameter of the =Uize.Templates.Calculator.process= static method.
*/%>

+/-
M+
M-
MR
MC

%
7
8
9
÷

4
5
6
×

CE
1
2
3
-

C
0
.
=
+