createChars()

Produces a SVG DOM text node.

Syntax

createChars( value STRING )
  RETURNS om.DomNode
  1. value is the value to be set in the text node.

Usage

This function creates a SVG DOM text node from the value passed as parameter.

Use the createChars() function when you need to create a SVG text node that cannot be created with one of the fglsvgcanvas functions (such as title()).

Example

DEFINE t, c om.DomNode
LET t = fglsvgcanvas.createElement( "title", "id1" )
LET c = fglsvgcanvas.createChars( "my value" )
CALL t.appendChild( c )