<text> can take formatted output by saying:

    <attribute name="value" value="1066" type="number" />
    <text>
      <handler name="oninit">
        this.format('%#X', parent.value);
      </handler>
    </text>

which will display `0X42A`.

That makes it hard to use constraints with formatting.  I could say:

    <text text="${this.formatToString('%#X', parent.value)}" />

But, I wonder if it would be more useful if I could say:

    <text formatting="%#X" data="${parent.value}" />

?

Reply via email to