Returns the text content of the first element in the collection.
var text = Pablo.text().content('I dig a Pygmy');
alert(text.content()); // 'I dig a Pygmy'
Returns the text content of the first element in the collection.
var text = Pablo.text().content('I dig a Pygmy');
alert(text.content()); // 'I dig a Pygmy'
Sets the text content of all the elements in the collection to the specified text, and returns the collection.
var svg = Pablo(demoElement).svg({height:40}),
text = svg.text({
x:0, y:30,
fill:'brown',
'font-size':'20px',
'font-family':'sans-serif'
});
text.content('Red lorry, yellow lorry');
This method is equivalent to the jQuery method .text()
. In Pablo, the .text()
method is used to create an SVG <text>
element, and .content()
is used to set the text content of elements.
Painting is just another way of keeping a diary.Pablo Picasso