Statics Interface
Statics for text nodes.
This API is provided as an alpha preview and may change without notice.
For more information about our API support guarantees, see here.
Signature
interface Statics
Methods
| Method | Alerts | Return Type | Description |
|---|---|---|---|
| fromString(value) | Alpha | Tree | Construct a Tree from a string, where each character (as defined by iterating over the string) becomes a single character in the text node. This combines pairs of utf-16 surrogate code units into single characters as appropriate. |
Method Details
fromString
Construct a Tree from a string, where each character (as defined by iterating over the string) becomes a single character in the text node. This combines pairs of utf-16 surrogate code units into single characters as appropriate.
This API is provided as an alpha preview and may change without notice.
For more information about our API support guarantees, see here.
Signature
fromString(value: string): Tree;
Parameters
| Parameter | Type | Description |
|---|---|---|
| value | string |
Returns
Return type: Tree