Basic sprintf support (#1965)

Implement optional format strings for valueMetadata which allows
developers to use c-style sprintf formatters as desired. Fixes #1562
This commit is contained in:
Pete Richards
2018-06-29 15:52:15 -07:00
committed by Andrew Henry
parent 29de11167f
commit 013eba744d
6 changed files with 20 additions and 4 deletions

View File

@@ -30,6 +30,7 @@ define([
{
key: "sin",
name: "Sine",
formatString: '%0.2f',
hints: {
range: 1
}
@@ -37,6 +38,7 @@ define([
{
key: "cos",
name: "Cosine",
formatString: '%0.2f',
hints: {
range: 2
}