Creates a Unit instance from a string representation.
Namespace: MindFusion.Common
File: Unit.js
SyntaxJavaScript
Copy Code
|
|---|
function parse (value) |
Type: String
String. The string representation of the unit.
Unit. The new Unit, or null if the string is invalid.
ExampleThe following code creates a new Unit using the parse method.
JavaScript
Copy Code
|
|---|
| var myMeasure = "80"; var unit = ui.Unit.parse(myMeasure); |
See Also