mozilla

Revision 428597 of Template:SensorCallbackProperties

  • Revision slug: Template:SensorCallbackProperties
  • Revision title: Template:SensorCallbackProperties
  • Revision id: 428597
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

Revision Content

<% var el = env.locale; switch (el) { case "yourLocale": %> value <%- template("readonlyInline") %> Double (float) The sensor data for <%= $0 %>. min <%- template("readonlyInline") %> Double (float) The minimum value in the range the sensor detects (if available, 0 otherwise). max <%- template("readonlyInline") %> Double (float) The maximum value in the range the sensor detects (if available, 0 otherwise). <% break; default: %> value <%- template("readonlyInline") %> Double (float) The sensor data for <%= $0 %>. min <%- template("readonlyInline") %> Double (float) The minimum value in the range the sensor detects (if available, 0 otherwise). max <%- template("readonlyInline") %> Double (float) The maximum value in the range the sensor detects (if available, 0 otherwise). <% break; } %>

Revision Source

<%
var el = env.locale;

switch (el) {

    case "yourLocale":

%><tr>
  <td><code>value</code> <%- template("readonlyInline") %></td>
  <td>Double (float)</td>
  <td>The sensor data for <%= $0 %>.</td>
</tr>
<tr>
  <td><code>min</code> <%- template("readonlyInline") %></td>
  <td>Double (float)</td>
  <td>The minimum value in the range the sensor detects (if available, 0 otherwise).</td>
</tr>
<tr>
  <td><code>max</code>  <%- template("readonlyInline") %></td>
  <td>Double (float)</td>
  <td>The maximum value in the range the sensor detects (if available, 0 otherwise).</td>
</tr><%

        break;
    default:

%><tr>
  <td><code>value</code> <%- template("readonlyInline") %></td>
  <td>Double (float)</td>
  <td>The sensor data for <%= $0 %>.</td>
</tr>
<tr>
  <td><code>min</code> <%- template("readonlyInline") %></td>
  <td>Double (float)</td>
  <td>The minimum value in the range the sensor detects (if available, 0 otherwise).</td>
</tr>
<tr>
  <td><code>max</code>  <%- template("readonlyInline") %></td>
  <td>Double (float)</td>
  <td>The maximum value in the range the sensor detects (if available, 0 otherwise).</td>
</tr><%
        break;
} %>