Class: Paragraph

WIND.Text. Paragraph

Creates a WIND.Text.Paragraph object.

new Paragraph(Paragraph)

Creates a WIND.Text.Paragraph object.
Parameters:
Name Type Description
Paragraph string The ID of the Paragraph object.
Example
var paragraph = new WIND.Text.Paragraph("paragraph1");

Methods

setContent(content)

Sets the contents of the paragraph.
Parameters:
Name Type Description
content string The contents that we want to set.
Example
var t = new WIND.Text('text', {'name':'LIUPPA','header':true,'color':'crimson','border':'coral 8px inset','width':800,'height':200,'left':100,'top':100});
var p = t.createParagraph("display:true");
p.setContent("Je vais de Bayonne à Pau.");