title()

Produces an SVG "title" element.

Syntax

title( text STRING )
  RETURNS om.DomNode
  1. text defines text for the title element.

Usage

This function creates a "title" SVG DOM element from the text provided as parameter.

In SVG, a title element is usually rendered with a tooltip on desktop platforms.

The title element must be the first child of the parent SVG element. See SVG specification for more details.

Example

DEFINE g om.DomNode
LET g = fglsvgcanvas.g( "g1" )
CALL g.appendChild( fglsvgcanvas.title("This is my text") )