Pass Static Value to Formatter Parameters in XML View
<p>I want to call the function <code>getCountdown</code> with two parameters:</p>

<ul>
<li>The first (AuctionEnd) is dynamic from a 
model.</li>
<li>The second should be hard coded in either <code>"Time"</code> or <code>"Status"</code>.</li>
</ul>

<p>This is my code:</p>

<pre class="lang-xml prettyprint-override"><code>&lt;ObjectStatus
  title="Time"
  text="{
    parts: [
      {path: 'AuctionEnd'},
      {path: 'Time'}
    ],
    formatter: '.formatter.getCountdown'
  }"
/&gt;
</code></pre>

<p>In formatter.js, there is only the first parameter as seen in my console log:</p>

<blockquote>
<pre><code>["2016-05-20T12:00:00", undefined]
</code></pre>
</blockquote>

<p>In JS, I would do it this way:</p>

<pre class="lang-js prettyprint-override"><code>var AuctionEnd = "2016-05-20T12:00:00";
getCountdown(AuctionEnd, "Time");
</code></pre>